Reboot Computer And Resume Setup

Got a problem you cannot solve? Try here.
tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Reboot Computer And Resume Setup

Postby tzachk » Thu Jun 16, 2016 11:01 am

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.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Reboot Computer And Resume Setup

Postby FrancescoT » Thu Jun 16, 2016 1:59 pm

Dear Tzachk,

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

tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Re: Reboot Computer And Resume Setup

Postby tzachk » Sat Jun 18, 2016 2:03 am

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.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Reboot Computer And Resume Setup

Postby FrancescoT » Mon Jun 20, 2016 8:41 am

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
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

tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Re: Reboot Computer And Resume Setup

Postby tzachk » Sun Jun 26, 2016 1:26 am

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.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Reboot Computer And Resume Setup

Postby FrancescoT » Mon Jun 27, 2016 10:31 am

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
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

tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Re: Reboot Computer And Resume Setup

Postby tzachk » Tue Jun 28, 2016 7:10 am

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.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Reboot Computer And Resume Setup

Postby FrancescoT » Tue Jun 28, 2016 12:47 pm

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
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

tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Re: Reboot Computer And Resume Setup

Postby tzachk » Tue Jul 19, 2016 11:14 am

Hi,

Thanks, that helped to get me in the right direction.

Regards,
T.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Reboot Computer And Resume Setup

Postby FrancescoT » Tue Jul 19, 2016 1:50 pm

:D
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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 217 guests