MSFN Forum: [solution] Supressing WISE installer reboot - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[solution] Supressing WISE installer reboot Rate Topic: -----

#1 User is offline   Nanaki 

  • Leg-humper
  • PipPipPipPip
  • Group: Members
  • Posts: 511
  • Joined: 17-January 05

Posted 13 April 2005 - 09:35 AM

Well, it's an easy script, but it's apparently nowhere on this forum decently explained.

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.

Attached File  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.

Posted Image

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.

Posted Image

7 Now you must launch "setuplauncher.exe" instead of "setup.exe". Behold, no question anymore!


-----------------------------------------------------------------------------------------------
Explanation script

Attached File  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:

Posted Image

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? ;) So you have to press the "right"-key first to jump to the "Cancel"-button.

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



#2 User is offline   totoymola 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 944
  • Joined: 24-September 04

Posted 13 April 2005 - 12:20 PM

Great information on such a small script. :)

#3 User is offline   1chaoticadult 

  • A Part of a Dying Breed...
  • PipPipPipPip
  • Group: Members
  • Posts: 669
  • Joined: 31-August 03

Posted 17 April 2005 - 10:31 AM

This has been talked about several times... Your solution is not new. Not to rain on your parade or anything.. Search is your friend. :D

#4 User is offline   Nanaki 

  • Leg-humper
  • PipPipPipPip
  • Group: Members
  • Posts: 511
  • Joined: 17-January 05

Posted 17 April 2005 - 10:48 AM

You bump this to say that? :P

Quote

Well, it's an easy script, but it's apparently nowhere on this forum decently explained.


Reading is your friend! :D

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy