We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Fast351
Posts: 3
Joined: Sat Sep 23, 2006 2:27 pm

Two applications install at same time. PROBLEMS!

For simplicities' sake, I'll make this as simple of an example of what I'm trying to do.

I have two programs I'm trying to install. Lets call them main.exe and bonus.exe.

I want main.exe to go into Program Files\Company\Main and bonus.exe to go into Program Files\Company\Bonus.

So I created in the Install Parameters page a Property called BonusDir with a value of C:\Program Files\Company\Bonus (the application folder is c:\Program Files\Company\Main).

Then under Files and Folders, I add main.exe to the Application Folder and bonus.exe to the BonusDir folder.

Now the problem: As soon as I hit build, bonus.exe shows up in the Application Folder.

Second issue:

I want to have main.exe install using typical, and bonus.exe install using complete or if the user selects it, in custom. So I add a second feature to the product on the Organization page, and select the install level to be 4, and move the bonus.exe application there. So far so good.

The problem occurs when the user selects custom. He enables the "bonus" feature, and the location shows the Application Folder instead of the BonusDir folter. I'm not sure what the browse button does in this case or which property it's related to. I can't find it anywhere in the manual either.

Some help would be appreciated!

Thanks.

-Mike
Fast351
Posts: 3
Joined: Sat Sep 23, 2006 2:27 pm

OK, I solved the first problem. bonus.exe was residing in the same source directory from where the files are coming from and I had auto update turned on for that folder so the files were getting added there. Once I moved bonus.exe to it's own folder it quit appearing in the application folder.

The second problem I have not solved yet though.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
So I created in the Install Parameters page a Property called BonusDir with a value of C:\Program Files\Company\Bonus (the application folder is c:\Program Files\Company\Main).
I don't think that you want to use a hard coded path for the BonusDir folder because if the user changes the application folder to "C:\" for example the bonus.exe file will always be installed in the hard coded path. So my suggestion is to set the application folder to "[ProgramFilesFolder][Manufacturer]" and created the "main" and "Bonus" as regular folders in the "Application Folder" from the "Files and Folder" view.
I'm not sure what the browse button does in this case or which property it's related to. I can't find it anywhere in the manual either.
In the "CustomizeDlg" dialog with the browse button you can change the folder where the application will be installed ("Application Folder") not the selected feature.

If I don't understand correctly what you want to achieve then please give me more details.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”