473,326 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Installing files in a location only known at runtime

Hi,

I am creating a MergeModule that is required to read the Windows Registry to
determine a location only known at runtime and install files. What I can't
figure out is, how to change the DefaultLocation property of the File
Installation Properties?

My thinking is this needs to be done in a CustomInstaller (Custom Actions).

Anyone have any good references?

Regards
Simon.
Jun 15 '06 #1
4 3693
Hello, Simon!

SH> I am creating a MergeModule that is required to read the Windows
SH> Registry to determine a location only known at runtime and install
SH> files. What I can't figure out is, how to change the DefaultLocation
SH> property of the File Installation Properties?

SH> My thinking is this needs to be done in a CustomInstaller (Custom
SH> Actions).

SH> Anyone have any good references?

Look at ( http://vadmyst.blogspot.com/2006/05/...y-name-in.html )
its in WiX, but approach remains the same as long as output is MS installer file

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Jun 15 '06 #2
Hi Vadym,

Thanks for your blog link. Unfortunately it doesn't mean much to me as I am
writing a C# Installer class which will be called by my merge module.

Regards
Simon.

"Vadym Stetsyak" <va*****@ukr.net> wrote in message
news:uq**************@TK2MSFTNGP05.phx.gbl...
Hello, Simon!

SH> I am creating a MergeModule that is required to read the Windows
SH> Registry to determine a location only known at runtime and install
SH> files. What I can't figure out is, how to change the DefaultLocation
SH> property of the File Installation Properties?

SH> My thinking is this needs to be done in a CustomInstaller (Custom
SH> Actions).

SH> Anyone have any good references?

Look at (
http://vadmyst.blogspot.com/2006/05/...y-name-in.html )
its in WiX, but approach remains the same as long as output is MS
installer file

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

Jun 15 '06 #3
Hello, Simon!

SH> Thanks for your blog link. Unfortunately it doesn't mean much to me as
SH> I am writing a C# Installer class which will be called by my merge
SH> module.

C# Installer class won't give you that functionality since you it isn't able to change msi property values. This is because installer class is working in "in-script" execution ( deferred custom action ).
( http://www.installshield.com/news/ne...ActionData.asp )

You need, custom action that will execute in the ui installation sequence
( http://www.codeproject.com/tips/msicustomaction.asp )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Jun 15 '06 #4
Hi Vadym,

I thought the Property property of the File Installation Properties windows
description says: "Specifies a named property that can be accessed at
installation time to override the path of a custom folder".

But the documentation on this is so glib and and can't find any proper
samples on this subject - very frustrating.

Regards
Simon.

"Vadym Stetsyak" <va*****@ukr.net> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hello, Simon!

SH> Thanks for your blog link. Unfortunately it doesn't mean much to me as
SH> I am writing a C# Installer class which will be called by my merge
SH> module.

C# Installer class won't give you that functionality since you it isn't
able to change msi property values. This is because installer class is
working in "in-script" execution ( deferred custom action ).
(
http://www.installshield.com/news/ne...ActionData.asp )

You need, custom action that will execute in the ui installation sequence
( http://www.codeproject.com/tips/msicustomaction.asp )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

Jun 15 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ajith Prasad | last post by:
I am trying to install the WinXP version of PyTables which requires hdf5 (from http://hdf.ncsa.uiuc.edu/HDF5/) as a pre-requisite. However, I am at a loss as to how to install hdf5 - I have...
4
by: GujuBoy | last post by:
i want to check to see if a certain program is installed on my windows box using python. how can i do that...(ie, i want to see if "word" is installed) please help
2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
2
by: Markus Dehmann | last post by:
My app reads some text files at runtime. The problem is where to find them. In my project, we agreed to rather not define own environment variables. But then, it's hard to know at runtime where...
12
by: Mark Broadbent | last post by:
Hi guys, just going through remoting at the moment and a couple of questions relating to .net in general has surfaced. Firstly I have seen in the designer that for the namespace and many of its...
1
by: hazz | last post by:
I tried using the Visual Studio setup and deployment wizard to create an msi to install the .exe, config and .dll resource files from my winxp deve box onto a Windows 2003 server. I don't have...
5
by: Cappy2112 | last post by:
I've just started a job which has a massive python2.3.4-centric tools installation and configuration. I know what you're going to say, but I can't upgrade and be the only one with a newer...
13
by: dancer | last post by:
I have made a new post because when I try to respond to another, I get the error, "Article Rejected -- Ill-formed message id" This is in response to the advice of Juan Libre to install Net...
0
by: Peter Van Peborgh | last post by:
I have an app that is built in Access 2002 and packaged with its runtime. When installing it in a Vista PC/laptop, several dialog boxes pop up that require specific answers for the app to install and...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.