Classic Shell
http://www.classicshell.net/forum/

New unattend option to import XML settings file
http://www.classicshell.net/forum/viewtopic.php?f=13&t=2891
Page 1 of 1

Author:  kukris [ Sun Jun 29, 2014 5:51 am ]
Post subject:  New unattend option to import XML settings file

Hello there,

my request is similiar to the topic Export settings.
I often do unattended installations and it is great that Classic Shell supports that.


My example
Code:
MSIEXEC /i "ClassicShellSetup64.msi" APPLICATIONFOLDER="%PROGRAMFILES%\ClassicShell" /qn ADDLOCAL=ClassicStartMenu START_MENU_FOLDER=0 /norestart


Currently I must additionally import a previously made registry file to get my desired settings.
So it would be great, if there would be a new unattended option to import settings via an existing XML file., i. e.
Code:
SETTINGS=MyWindows7Settings.xml


Greetings
Kukris

Author:  Ivo [ Sun Jun 29, 2014 8:31 am ]
Post subject:  Re: New unattend option to import XML settings file

This is not possible in the general case because the installer must run as the admin user and therefore may not have access to the registry of the regular user. You will have to save your registry key (for example HKCU\Software\IvoSoft\ClassicStartMenu\Settings) and then apply it after (or even before) you install the software.

Author:  classichombre [ Wed Oct 08, 2014 2:31 pm ]
Post subject:  Re: New unattend option to import XML settings file

I too have been frustrated by the inability of Classic Shell to auto-import settings. Saving and then executing all of the the Classic Shell registry keys has never worked for me. However, I created an Autoit script that will auto-install Class Shell settings for both Explorer and the Start Menu. You can execute it as a stand-alone script or compile it and compress it along with .XML settings into a self-extracting executable that can run as a silent install app during a clean install of Windows.

code for CS Menu
Code:
; this scrip auto-installs previously saved .xml settings for the Classic Shell Menu
Opt("WinTitleMatchMode", 4)
ShellExecute("C:\Program Files\Classic Shell\ClassicStartMenu.exe", "-settings") ;Insert actual path to ClassicStartMenu.exe in the classic shell direectory
WinWait("Settings for Classic Start Menu","Show all")
ControlClick("Settings for Classic Start Menu","Show all","Button4")
sleep (600)
send("{down 2}")
send ("{enter}")
winwait("Load XML File", "Tree View")
send ("C:\PATH TO YOUR\Menu Settings.xml"); Insert actual path to your Menu .xml settings file
sleep (600)
Send("{enter}")
sleep (600)
Send("{enter}")
Exit


code for CS Explorer
Code:
; this scrip auto-installs previously saved .xml settings for the Classic Shell Explorer
Opt("WinTitleMatchMode", 4)
Run("C:\Program Files\Class Shell\ClassicExplorerSettings.exe") ;Insert actual path to ClassicExplorerSettings.exe in the classic shell direectory
WinWait("Settings for Classic Explorer","Current toolbar buttons:")
ControlClick("Settings for Classic Explorer","Current toolbar buttons:","Button2")
sleep (600)
send("{down 2}")
send ("{enter}")
winwait("Load XML File", "Tree View")
send ("C:\Path to\Explorer Settings.xml") ; Insert actual path to your Explorer .xml settings file
sleep (600)
Send("{enter}")
processclose("ClassicExplorerSettings.exe")
Exit

Author:  Gaurav [ Mon Apr 13, 2015 5:27 am ]
Post subject:  Re: New unattend option to import XML settings file

Version 4.2.0 beta and later of Classic Shell support a new command line setting "-xml <file name>" for ClassicStartMenu.exe, ClassicExplorerSettings.exe and ClassicIE_32.exe to import settings from XML file. The Start Menu settings are applied immediately (except some cold settings which require a restart of the Start Menu).

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/