Menu

#76 Installer command line parameter import config.xml

closed
nobody
None
5
2012-10-29
2010-11-15
Anonymous
No

Installer command line parameter to automatically import an existing settings-file after installation is done (i.e. Setup.exe /qn /im path\settings.xml)

Discussion

  • Ivo Beltchev

    Ivo Beltchev - 2010-11-15

    That's an interesting idea. It gets complicated though, for 2 reasons:
    1) There are 2 XML files - one for Explorer and one for the start menu
    2) The installer may run as a different user, if the current user doesn't have admin privileges. This makes it tricky to set the settings for the current user

    BTW, you are aware that the new settings are per-user, right? So the XML will only apply to one user. The rest of the users will have to import the settings through the UI.

    But I'll think about it and put it on the long-term wish list. It will most likely not make it in the next version though.

    In the mean time, look at saving the registry keys HKCU\Software\IvoSoft\ClassicExplorer and HKCU\Software\IvoSoft\ClassicStartMenu.
    That's where the settings are stored. You can simply execute the .reg file to restore your settings after installation. Make sure you delete the old contents of those keys, because you can get a mix of old and new settings.

     
  • Ivo Beltchev

    Ivo Beltchev - 2010-12-19

    I thought about this and decided against this feature. A good solution is not possible because of the 2 problems in my previous post. An imperfect solution already exists - just store and restore the registry settings as part of your installation. The registry settings are guaranteed to be compatible between versions (starting with version 2.9.0).

     

Log in to post a comment.