Some WISE installers ask to reboot at the end. No switch can circumvent this, that's right, not a single one, don't even ask. You could repack it, you could create your own installer, but you also could automatically click "no" when the installer asks you to reboot. Which seems the easiest to you?
-----------------------------------------------------------------------------------------------
Automatic
If you want it the easy way, download "wise.zip" at the bottom of this post. If you place the included file "wise.exe" in "\$OEM$\$$\system32" you can use it like this:
wise "C:\Install\Applications\setup.exe"
"C:\Install\Applications\setup.exe" is the normal path to the installer. Don't supply extra parameters and use quotes. If it doesn't work for you or if you want to do it manually, continue reading.
wise.zip (148.32K)
Number of downloads: 132
-----------------------------------------------------------------------------------------------
Tutorial
1 First you'll have to download AutoIT 3.x. You can choose between an installer or an archive. I prefer the archive.
2 Next, you'll have to write a script. Open Notepad by going to Start -> Run and typing "notepad". Now copy paste this code into it:
Opt("SendKeyDelay", 1)
Opt("WinWaitDelay", 1)
Run("setup.exe /s")
WinWaitActive("Install")
Send("{RIGHT}")
Send("{ENTER}")
You may replace setup.exe by the name of the installer of the program you want to install.
3 Save this file in a custom directory. One requirement; use "au3" as an extension. I will call it "setuplauncher.au3" in this example.
4 Open Aut2Exe. If you used the installer in step 1, it'll be in your Start Menu. If you used the archive, it will be in the folder "Aut2Exe".
5 In the "Source"-textbox, select the previously created "au3"-file. In the "Destination"-textbox, select the same folder als the Wise-Installer. If you leave this textbox open, the executable will be created in the same folder as the au3-file.
6 If the created .exe isn't in the same folder as the setup-file, do that now. You can eventually place them both in an SFX-Archive, but that's another story.
7 Now you must launch "setuplauncher.exe" instead of "setup.exe". Behold, no question anymore!
-----------------------------------------------------------------------------------------------
Explanation script
wise_source.au3 (697bytes)
Number of downloads: 59
You may want to know how this script works if the default doesn't work for you. I'll be doing it line-by-line.
Opt("SendKeyDelay", 1)
The application will wait one millisecond before sending a key. This value is lower than the default, meaning the question will be a bit faster repressed.
Opt("WinWaitDelay", 1)
The application will wait one millisecond when discovering a supplied window with WinWaitActive. This value is lower than the default, meaning the question will be a bit faster repressed.
Run("setup.exe /s")
This will run the setup (called "setup.exe" here) with the normal WISE-Installer silent parameter "/s". Note that you may also use values like "C:\Install\setup.exe /s".
Now, at the end of the setup, this window appears:
WinWaitActive("Install")
This will make the script wait until a window with the title "Install" appears (see screen).
Send("{RIGHT}")
The default commandbutton of the annoying question is "OK". We don't want this anwser, right?
Send("{ENTER}")
Now that the correct button is selected, "ENTER" must be pressed. You're done now.
This post has been edited by Nanaki: 19 September 2007 - 08:33 AM



Help

Back to top








