I am a newbie.
I would like to have a master install program which installs a set of sub install programs. The master program display a series of buttons, the user clicks on a button which calls DoAction to install a sub program, the user can click on as many buttons as he likes. The master program gets the root directory at the start. The sub programs are installed off the root. My problem is how to tell the sub program where to install. All the installs are on Windows.
These are the procedures which I have tried to tell the sub program where to install, without success.
1. Master program sets an environment variable, XXX_HOME, the “Application Folder” for the sub program looks like [%XXX_HOME]\NewSub. The problem is the environment variable is not set until AFTER the master program is finished. When the sub program starts XXX_HOME is not set.
2. Set the “Application Folder” for the sub program to the current directory or working directory. This is actually the method I like best. “Application Folder” for the sub program looks like [%CD]\NewSub which did not work. I also tried [.]\NewSub and .\NewSub
3. Use the registry to set the root directory. The registry is updated correctly. But I don’t know what goes in “Application Folder”. I have tried
HKEY_LOCAL_MACHINE\SOFTWARE\Informatix Inc.\Rapid Install Selection\New_Key\NewSub
and
[HKEY_LOCAL_MACHINE\SOFTWARE\Informatix Inc.\Rapid Install Selection]\New_Key\NewSub
And
[%HKEY_LOCAL_MACHINE\SOFTWARE\Informatix Inc.\Rapid Install Selection]\New_Key\NewSub
How do I can pass the root directory to the sub programs?
Thanks,
Bob
FOLLOW US
Get the latest news in Application Packaging