Page 1 of 1
Reboot Computer And Resume Setup
Posted: Thu Jun 16, 2016 11:01 am
by tzachk
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.
Re: Reboot Computer And Resume Setup
Posted: Thu Jun 16, 2016 1:59 pm
by FrancescoT
Dear Tzachk,
of course the local path of the extracted setup,exe.
Regards
Re: Reboot Computer And Resume Setup
Posted: Sat Jun 18, 2016 2:03 am
by tzachk
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.
Re: Reboot Computer And Resume Setup
Posted: Mon Jun 20, 2016 8:41 am
by FrancescoT
Re: Reboot Computer And Resume Setup
Posted: Sun Jun 26, 2016 1:26 am
by tzachk
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.
Re: Reboot Computer And Resume Setup
Posted: Mon Jun 27, 2016 10:31 am
by FrancescoT
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
Re: Reboot Computer And Resume Setup
Posted: Tue Jun 28, 2016 7:10 am
by tzachk
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.
Re: Reboot Computer And Resume Setup
Posted: Tue Jun 28, 2016 12:47 pm
by FrancescoT
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
Re: Reboot Computer And Resume Setup
Posted: Tue Jul 19, 2016 11:14 am
by tzachk
Hi,
Thanks, that helped to get me in the right direction.
Regards,
T.
Re: Reboot Computer And Resume Setup
Posted: Tue Jul 19, 2016 1:50 pm
by FrancescoT