473,513 Members | 2,881 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing CustomActionData in Installer Ctor

1 New Member
I am passing in properties when launching a MSI file (for example: "setup.exe MyService.msi ServiceName=MyService1"). In my module, I have a class that derives from Installer. In that class ctor, I am using ServiceProcessInstaller and then adding it to the Installers collection. In the ctor, I need to access the property "ServiceName". The property is available via Installer.Content only after the object has been successfully constructed. Is there a way to access the property in the ctor of Installer? Thanks.
Jan 5 '12 #1
0 1133

Sign in to post your reply or Sign up for a free account.

Similar topics

1
8448
by: Craig | last post by:
I have added a 'Textboxes (A)' to my UI installer project along with a custom action to pass the value back to a class I've written to override the void Install function. As long as the text is very simple everything is working just fine. I've tested it by writing the string out to a text file to test it. However, the trouble comes in...
1
15017
by: Gabor | last post by:
In my app I'm using a dll, wich includes an installer class. The install sub call the SetMSDEForApp sub wich two parameters: Public Overrides Sub Install(ByVal stateSaver As System.Collections.IDictionary) MyBase.Install(stateSaver) SetMSDEForApp(Me.Context.Parameters.Item("ApplicationName"), Me.Context.Parameters.Item("password"))
4
3523
by: Bruce Parker | last post by:
I have an executable that is launched by a custom action in the Windows Installer. Is there a way to get access to the Session variables (Global Properties)? Also how do I create a return code if there is a failure and I want the install to abort?
3
1704
by: Mark Assousa | last post by:
Hi, I'm having trouble finding the right news group for this posting so here goes... I am attempting to execute some special actions within an installation project for a standard .Net Windows application. I have a custom Installer class that needs to access a disk file installed during the installation in a directory relative to the...
1
1141
by: ucasesoftware | last post by:
I need to start a custom action only if a condition is true... in vs.net i have "condition"... but i don't know how to use it ?? myCondition = true ? only myCondition ? and how i initiate this "myCondition"
0
2747
by: Soren S. Jorgensen | last post by:
Hi, I've created a custom installer for my setup project and is passing the parameter to installer like /TargetDir= in CustomActionData - but when contains spaces my installer fails! I've tried surrounding the with " and ' but this only makes the installer fails with another exception. What do I do ??
8
6438
by: jacky kwok | last post by:
Dear All: In VS2005 WebSetup installer InstallAddress dialog, there is field to let user to select which website to install the webapp (if there are more than one WebSite in the IIS). I want to know how can I get the WebStie info in the customAction. I can use "/VDIR=" in customActiondata to get the installed VirtualDirectory.
0
922
by: Kemin | last post by:
Recently I built an ASP.NET application Installation program for deployment. The ASP.NET app use a Sql Server db, I package it into the installation file too. The general step of building an installation are: 1.Add an install class to the deployed project and imperment the custom action 2.Add a "Data Entry Dialog Boxes" in the User...
0
1573
by: Kemin | last post by:
Recently I built an ASP.NET application Installation program for deployment. The ASP.NET app use a Sql Server db, I package it into the installation file too. The general step of building an installation are: 1.Add an install class to the deployed project and imperment the custom action 2.Add a "Data Entry Dialog Boxes" in the User...
3
1026
by: vidishasharma | last post by:
Suppose I have downloaded my msi installer in c:\Installer . When I run my installer how can I get to know in my installer script that the installer is being run from c:\Installer .
0
7177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7559
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...
1
7123
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...
0
7542
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...
0
5701
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4756
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...
0
3248
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...
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
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...

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.