Hi,
Do you know what is added to RunOnce registry key when I execute an installer with the command "Reboot Computer And Resume Setup" in the install script?
Regards,
T.
Reboot Computer And Resume Setup
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Reboot Computer And Resume Setup
Dear Tzachk,
of course the local path of the extracted setup,exe.
Regards
of course the local path of the extracted setup,exe.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Reboot Computer And Resume Setup
Hi Francesco,
Thank you for your answer.
Do I need to append any parameters to the setup.exe path or just the exe name is enough?
Regards,
T.
Thank you for your answer.
Do I need to append any parameters to the setup.exe path or just the exe name is enough?
Regards,
T.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Reboot Computer And Resume Setup
Dear Tzachk,
you may add parameters in case you need.
Have a look at this;
http://www.sevenforums.com/general-discussion/365194-how-put-command-parms-directly-registry-runonce.html
Regards
you may add parameters in case you need.
Have a look at this;
http://www.sevenforums.com/general-discussion/365194-how-put-command-parms-directly-registry-runonce.html
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Reboot Computer And Resume Setup
Hi Francesco,
I've tried to add to the runonce the location of the setup.exe file
I'm using the built in variable $EXEFILE$. When I add this variable content to the registry, it gives me something like C:\Users\ADMINI~1\AppData\Local\Temp\7zSD3A3.tmp\setup.exe
However, this path does not exists, and after reboot, nothing happens. The actual exe seems to be extracted to C:\Users\ADMINI~1\AppData\Local\Temp\{7AB4C7D4-137E-4E2A-9C05-EDE6FC5BB863}.exe
Your help is required as to understand how the "Reboot Computer And Resume Setup" command is operating.
Regards,
T.
I've tried to add to the runonce the location of the setup.exe file
I'm using the built in variable $EXEFILE$. When I add this variable content to the registry, it gives me something like C:\Users\ADMINI~1\AppData\Local\Temp\7zSD3A3.tmp\setup.exe
However, this path does not exists, and after reboot, nothing happens. The actual exe seems to be extracted to C:\Users\ADMINI~1\AppData\Local\Temp\{7AB4C7D4-137E-4E2A-9C05-EDE6FC5BB863}.exe
Your help is required as to understand how the "Reboot Computer And Resume Setup" command is operating.
Regards,
T.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Reboot Computer And Resume Setup
Dear Tzachk,
you should use the "UNINSTALLLINK" pre-defined variable instead.
This points to the full path of the setup program which is typically located under ..\ProgramData\<REVISIONCODE>. At any rate this corresponds to the locally cached copy of the setup executable. For more details, have a look at "ENGINECACHE" pre-defined variable in the product documentation.
Hope this helps you.
Regards
you should use the "UNINSTALLLINK" pre-defined variable instead.
This points to the full path of the setup program which is typically located under ..\ProgramData\<REVISIONCODE>. At any rate this corresponds to the locally cached copy of the setup executable. For more details, have a look at "ENGINECACHE" pre-defined variable in the product documentation.
Hope this helps you.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Reboot Computer And Resume Setup
Hi Francesco,
I already used the UNINSTALLLINK, and it doesn't work either.
I also think that this is the wrong variable to use, as this corresponds to the setup.exe of the already installed product, but I need to execute the setup.exe of the new installer (If I understand correctly)
My use case is the following:
- I have my product installed on a machine
- I want to run a new installer which should upgrade the installed product.
- To perform the upgrade, I need to perform a reboot to the machine as to free any resources in use.
- I put my application service in manual mode, and call Installaware "Reboot Computer And Resume Setup", which correctly restarts the machine and then starts the upgrade process.
- The issue is that my client wants to have the option to postpone the reboot to later time, in which case I can't use "Reboot Computer And Resume Setup" command, and I need to add to runonce the correct executable to run after reboot (per my understanding from our e-mail chain.
- I tried to use both EXEFILE and UNINSTALLLINK. both do nothing after I reboot the machine on my own.
Any help?
Regards,
T.
I already used the UNINSTALLLINK, and it doesn't work either.
I also think that this is the wrong variable to use, as this corresponds to the setup.exe of the already installed product, but I need to execute the setup.exe of the new installer (If I understand correctly)
My use case is the following:
- I have my product installed on a machine
- I want to run a new installer which should upgrade the installed product.
- To perform the upgrade, I need to perform a reboot to the machine as to free any resources in use.
- I put my application service in manual mode, and call Installaware "Reboot Computer And Resume Setup", which correctly restarts the machine and then starts the upgrade process.
- The issue is that my client wants to have the option to postpone the reboot to later time, in which case I can't use "Reboot Computer And Resume Setup" command, and I need to add to runonce the correct executable to run after reboot (per my understanding from our e-mail chain.
- I tried to use both EXEFILE and UNINSTALLLINK. both do nothing after I reboot the machine on my own.
Any help?
Regards,
T.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Reboot Computer And Resume Setup
Dear Tzachk,
the "UNINSTALLLINK" pre-defined points to the "cached setup location" of the current installation.
Of course such location will be only available once the setup process has been successfully completed.
In other words, if you are installing MyPackage 1.0 the "UNINSTALLLINK" will point to the "cached setup location" of "MyPackage 1.0" (once installed).
Alternatively if you need to point the setup.exe which has not been installed yet, you may use; SFXPATH.
"SFXPATH: If an uncompressed directory layout is used, this variable is empty. Otherwise set to the full path of the folder containing the self extracting executable which bootstrapped the installer."
Hope this helps you.
Regards
the "UNINSTALLLINK" pre-defined points to the "cached setup location" of the current installation.
Of course such location will be only available once the setup process has been successfully completed.
In other words, if you are installing MyPackage 1.0 the "UNINSTALLLINK" will point to the "cached setup location" of "MyPackage 1.0" (once installed).
Alternatively if you need to point the setup.exe which has not been installed yet, you may use; SFXPATH.
"SFXPATH: If an uncompressed directory layout is used, this variable is empty. Otherwise set to the full path of the folder containing the self extracting executable which bootstrapped the installer."
Hope this helps you.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Reboot Computer And Resume Setup
Hi,
Thanks, that helped to get me in the right direction.
Regards,
T.
Thanks, that helped to get me in the right direction.
Regards,
T.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Reboot Computer And Resume Setup

Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: JohnGaver and 155 guests