Newbie Question - read paths and use them in installation - 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!

MartinFH
Posts: 19
Joined: Thu Sep 20, 2007 1:32 pm

Newbie Question - read paths and use them in installation

hi,

iam testing the Advanced Installer for our own software solutions.

Cause of problems with Wise Installer Express & Vista, we are searching for "the Best" solution...

So, i created an Enterprise Project in the Demo Version - everything is working fine.

Next step for me is to read some of our paths from the registry.

But how can i use these paths for my installation?
For Example iam reading the installpath from the current installation out of the registry (Menu "Search") - how can i use this path as installdir in the installation or for only one component?

I tried to do this with the "conditional"-button in "Organization"...

Important: If the value of the registry entry is empty the path should have a standard value.

Hope you understand my problem...my english isn't the best...


Greetings

Martin
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Thank you for your interest in Advanced Installer!

First you set up the search which will return the property RESULT_PROPERTY. In the "Custom Actions" page, under "InstallUISequence" folder, you add the "AppSearch" standard action under which you create a "Property set with Formatted" custom action which looks like this:

Code: Select all

Property Name:    APPDIR
Formatted Text:    [RESULT_PROPERTY]
.....
Expression:    RESULT_PROPERTY (this one is in the "Execution Condition" section)
This will make the APPDIR property take the value from the registry. Now drag and drop while pressing the "Shift" key the custom action to the same folder (which you must add) under the "InstallExecuteSequence".

This will make the install folder to be the value returned by the search (if it isn't empty).

In order to install only one component in a folder specified by a value from the registry you must follow these steps:
- create a registry search which will return the value in the RESULT_PROPERTY_2 property;
- create a property based folder using that property;
- in this folder you will place the files you need (the files in the component you mentioned).

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MartinFH
Posts: 19
Joined: Thu Sep 20, 2007 1:32 pm

thanks... that was the answer i needed.

Return to “Common Problems”