Solved

Set [TARGETDIR] in installer with value from registry

Posted on 2010-11-17
2
1,159 Views
Last Modified: 2013-12-17
Hello experts,

I need to create an installation procedure that copies some files to a specific directory. This directory is a value that is stored in the registry. So I need to overrule the default installation path ([TARGETDIR]) with a value that is retrieved at run-time.

Any ideas how I can do this ?

Kind regards,
Andy
0
Comment
Question by:ACAE
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 34154181
Ok, this is going to take a little bit of explaining :)

Step 1: In the Launch Conditions pane, under the "Search Target Machine" folder, add a new "Registry Search".
Step 2: Set the details of the key you want to search for and set the "Property" to MYREGPATH (or something similar)
Step 3: Switch to the File System pane and select the Application Folder.
Step 4: Set the Default Location to MYREGPATH (or whatever you used in Step 2)
0
 

Author Comment

by:ACAE
ID: 34154280
Carl,
This works perfect, thank you very much for you help. I already spend ages searching for this.

Regards,
Andy
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question