473,950 Members | 25,359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3712
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.ne t> wrote in message
news:uq******** ******@TK2MSFTN GP05.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.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP02.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
8038
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 downloaded the zipped version of hdf5 and unzipped it using WinZip but get a mass of .exe and other files and have no clue as to how to proceed further. Thanks in advance for any help.
4
5167
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
15253
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 Personal disk from the SQL Server 2000 Enterprise kit as this is reported here on the MSDN web site to be the version that is supported on Windows XP. In fact so many of you kind people confess to having succeeded in doing it. I have tried...
2
1368
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 the files are because that changes with a "make install". I kind of solved this by letting the Makefile generate a header file that contains string variables with path information. The Makefile writes the values into that header file. The only...
12
1977
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 associated classes of System.Runtime.Remoting are available, but certain ones are not. A reference to System.Runtime.Remoting needs to be added to make available all the unavailable ones. Now although I (think) understand the concept that an...
1
1611
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 access to that machine through vpn, I can't remote desktop. I have to send something to a colleague who has to do the installation. So far I have failed every attempt, either with the msi or by simply zipping up the bin directory files. Could...
5
2137
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 version. There are close to 30 engineers using this same tools configuration, and it has been working fine for a long time. For now, we all have to live with the limitations and or bugs in 2.3.4. I'm running Windows XP, SP2, on a AMD 1.79Ghz MP 2200+.
13
6678
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 Framework Service Pack 1 in order to use ASP.net 1.1 and the net Framework 1.1 ------------------------------------------------------------------------------------------------ I found the following file, "svcpack.log" at C:\WINNT. It contains many...
0
1799
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 work OK under Vista. Is there any way to make this installation more straightforward by pre-empting these dialog boxes and/or answering them automatically so that the User does not have to do it himself and probably get it wrong? Here is what I...
0
11190
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11363
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10701
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8265
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7440
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6130
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6351
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4957
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3556
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.