Can anybody help?
Is it possible to run the "Copy settings wizard" from the command line?
I want to run it silently (in restore mode) with my installation application (inno setup).
Many thanks in advance!!!!
Not sure if this is what you mean/need; If you make image for an installation, you've the option to choose the reg file created via copy setting wizard. Then during the installation, settings from that reg file is used.
I want to deploy the "restore settings" to multiple computers and I want, if possible, to run the "restore settings wizard" using a command line so that it restores the settings without running the program each time.
You should be able to convert the reg file into a bat file which then can work from a command line.
The file from copy settings wizard is actually just a reg file. If you change file extension to .reg. You will then be able to run it and just click "Yes" in the dialog that pop-up. So you could manage if you just change the extension and tell users to run it and click yes.
Otherwise register changes can be done with bat file or with vb script. Then you would get rid of the manual click yes in the dialog. Perhaps there is some free convert reg file to vb scscript software on the net.... I have not looked at that before.
This post at stack overflow is interesting. It tells how to run a reg file and not get the pop-up. The solution is using at bat file.
Actually I did some testing and it worked out well for me. Please note that I'm administrator on my computer. it might be some surprises there if the user is not admins on thier computers.
1) I saved my settings with Copy Settings Wizard to the drive. (For this test I just placed it at C:)
2) Rename the file to have file extension .reg (reg file named to test.reg in example below)
3) Created a bat file with following content
regedit.exe /s C:\test.reg
4) Run the bat file
The command window will just flash and then disapear.
The very simple bat file is attached.
Please mark this answer as correct if it helped you.
Retrieving data ...