Set Installation path based on target OS - Advanced Installer Community

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!

Pasadena
Posts: 9
Joined: Mon Jun 15, 2009 12:55 pm

Set Installation path based on target OS

Hi,

...Maybe this is asked hundrets of time, but I can not find it...

What must I do, that the Application Folder ist changed automatic when I use different Operatingsystems.
I mean Windows-Systems, see my example:

In Windows98 - WindowsXP the Installation Path should be C:\Program Files\Program_Name
In Vista and Windows 7 the Path should be C:\users\[Username]\Program_Name

I tried several Scenarios with the condition "VersionNT", but it dows not work.
Can anybody show me, step by step, how this is modified?

Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Set Installation path based on target OS

Hello,

You can add several set property init events on the FolderDlg each set with the conditions explained in this article.

The property for the application folder is "APPDIR".

Also, here is the user guide reference to the Set Property event.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Pasadena
Posts: 9
Joined: Mon Jun 15, 2009 12:55 pm

Re: Set Installation path based on target OS

Hi Mihai,

I read the articles and the docus, but I cannot find a solution for my problem.

I found events for several folders when different OS, but I need several Installpaths in the FolderDlg on OS. Maybe I dont understand the doku, but I tried several things, I dont find a way to change the ApplicationFolder while checking the OS.

The Files and the rest are the same, only the Application Folder in the Install parameters must change (shown in the FolderDlg).

Can you give me a Step by step example. In the doku it is too bad.

Thanks
Pasadena
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Set Installation path based on target OS

Hello Pasadena,

Here is a sample project that proves the functionality I described in my last post:
CHANGE_APPDIR_BASED_ON_OS.aip
(7.96 KiB) Downloaded 293 times
Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Pasadena
Posts: 9
Joined: Mon Jun 15, 2009 12:55 pm

Re: Set Installation path based on target OS

Great!

But it is the wrong version, I still have 7.3.1, your script is for 8.0.3

Can you downgrade? Or must I upgrade? But this could difficult, the program says "outside of maintanance plan", when I try to update. So I cannot update? Or must I pay for it or buy a new licence?

Pasadena
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Set Installation path based on target OS

Hi Pasadena,

You can update to our latest version( 8.1 ) by extending your maintenance plan. Just follow this web page.

Also, here is a screenshot with the event's settings from the sample project:
events.jpg
events.jpg (72.88 KiB) Viewed 4518 times
Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Pasadena
Posts: 9
Joined: Mon Jun 15, 2009 12:55 pm

Re: Set Installation path based on target OS

Hi again,

additional problem: I have Professional, not Enterprise. It seems, that this functionality only works in Enterprise.
Is there a way for Professional?

Pasadena
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Set Installation path based on target OS

Hi Pasadena,

Unfortunately, there is no predefined way to achieve this functionality in the Professional edition. The solution would be to upgrade your license or implement the functionality from within your own custom action.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”