Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

The product nested installed can not reinstall.


2 replies to this topic

BrightIdeal

BrightIdeal
  • Members
  • 20 posts

Posted 16 October 2003 - 14:30

I have a privious product A which include a nested products B.
In order to upgrade A with C,I add the upgrade code of A to the upgrade table of C.When I uninstall A,B was also uninstalled.But after uninstall B,there is a reboot needed.Otherwise,product D nested in the C,which also the new version of B,can not be installed.

How can I install the product D?

Thanks a lot.

jsimpson

jsimpson
  • Members
  • 1 posts

Posted 16 October 2003 - 19:18

this sets the value of the path to setup.exe to wherever it is launched from:

NUMBER nvSize, nResponse;
STRING svName;

begin

//Find the path to setup.exe
nvSize = 256;
nResponse = MsiGetProperty (ISMSI_HANDLE, "SETUPEXEDIR", svName, nvSize);
gszSetupPath = svName;

once this value is found and you need to reboot, you can require a reboot. I would recommend creating a temporary registry key that your install checks for here. Add a shortcut to setup.exe in the startup folder and when the setup resumes, it can decide what to do based on the registry key you create before reboot.

BrightIdeal

BrightIdeal
  • Members
  • 20 posts

Posted 20 October 2003 - 07:03

Thank you very much.
I think it's a good solution.
But I was confused that when I will reboot the machine?