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!

John Dill
Posts: 9
Joined: Tue Dec 02, 2014 10:23 pm

Setting the install path on 64-bit Windows OS

Hello,

I have been trying to set the install path of my program to default to C:\Program Files\ for 64-bit installs on Windows 7 64-bit OS. What I observe is that the default folder comes up at C:\Program Files (x86)\ instead. To avoid confusion, I'd like to install the 64-bit version of the application in C:\Program Files\ without the user having to manually remove the '(x86)' part of the path out.

I tried using the following command in my batch script.

AdvancedInstaller.com /edit project.aip /SetPackageType x64

but it doesn't appear to fix the install path issue.

Is there a recommended method to set the install path to C:\Program Files\ on 64-bit Windows OS?

The other issue is that I currently build an installer for different targets, Windows XP 32-bit, Windows 7 32-bit, and Windows 7 64-bit. My supervisor wants me to try to combine this into a single installer that one can simply run on any of these platforms. Is there a recommendation of how to go about it?

Thanks,
John D.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Setting the install path on 64-bit Windows OS

Hello John,
I tried using the following command in my batch script.

AdvancedInstaller.com /edit project.aip /SetPackageType x64

but it doesn't appear to fix the install path issue.

Is there a recommended method to set the install path to C:\Program Files\ on 64-bit Windows OS?
Besides of using the "SetPackageType" command to set the project package type to 64-bit, you should also change the path of the "Application Folder" field (APPDIR property) from "Install Parameters" page. Just open your project, go to "Install Parameters" page and set the "Application Folder" field to a path like this:

Code: Select all

[ProgramFiles64Folder][Manufacturer]\[ProductName]
Please take a look on our "Folder Paths" article too.

Also, if you want to do this from command line you can use our "/SetAppdir" command. For instance, you can use a command line like this:

Code: Select all

AdvancedInstaller.com /edit MyProject.aip /SetAppdir -buildname DefaultBuild -path [ProgramFiles64Folder][Manufacturer]\[ProductName]
The other issue is that I currently build an installer for different targets, Windows XP 32-bit, Windows 7 32-bit, and Windows 7 64-bit. My supervisor wants me to try to combine this into a single installer that one can simply run on any of these platforms. Is there a recommendation of how to go about it?
Yes, you can create a mixed 32/64-bit package type for this. Also, please take a look on our "Advanced Installer Package Types" article which should be useful for you.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
John Dill
Posts: 9
Joined: Tue Dec 02, 2014 10:23 pm

Re: Setting the install path on 64-bit Windows OS

Daniel wrote:Hello John,
The other issue is that I currently build an installer for different targets, Windows XP 32-bit, Windows 7 32-bit, and Windows 7 64-bit. My supervisor wants me to try to combine this into a single installer that one can simply run on any of these platforms. Is there a recommendation of how to go about it?
Yes, you can create a mixed 32/64-bit package type for this. Also, please take a look on our "Advanced Installer Package Types" article which should be useful for you.

If you have any questions just let us know.

All the best,
Daniel
I finally got time to look at this again. I think I understand what my options are.

One question I had was that since it appears that SetPackageType only refers to standalone configurations (x86, x64, ...) and not Mixed Type, that implies that I need to use the wizard to do a Mixed 32-bit/64-bit installer in the Advanced Installer application itself. Is that correct?

Thanks for your help.

Best regards,
John Dill
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Setting the install path on 64-bit Windows OS

Hello John,
One question I had was that since it appears that SetPackageType only refers to standalone configurations (x86, x64, ...) and not Mixed Type, that implies that I need to use the wizard to do a Mixed 32-bit/64-bit installer in the Advanced Installer application itself. Is that correct?
Yes, this is right. You can create a mixed package type only by using AI with UI application.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”