473,396 Members | 2,076 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,396 software developers and data experts.

.Net Framework Installer Class

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 application directory. The
file name is known but I don't know how to access the target
installation folder during the AfterInstall event of the Installer
class. I'm certain this information is available, I just don't know
where it is. Any suggestions?

On a related note, I'm a little fuzzy on the linkage between an
installer class library and the install project itself. It appears you
do not explicitly instantiate the custom installer in code but reference
the class name under a special action and the special action uses
Reflection to locate and instantiate an instance of the class at
install/uninstall time. Is that correct?

Thanks in advance.
Nov 21 '05 #1
3 1694
Mark Assousa <ma******@netscape.net>'s wild thoughts were
released on Mon, 11 Apr 2005 15:36:44 -0500 bearing the
following fruit:
Hi,

I'm having trouble finding the right news group for this posting so here
goes...


..VB = VB Classic Groups

..dotnet = .Net groups.

It's rare that you would need to post to both
Jan Hyde (VB MVP)

--
Birds are grouchy in the morning because their bills are over dew.
(Pun of the Day)

[Abolish the TV Licence - http://www.tvlicensing.biz/]

Nov 21 '05 #2
Pass TARGETDIR into your custom action CustomActionData like this:
http://msdn.microsoft.com/library/de...taproperty.asp

You get it from the IDictionary item associated with name if you used /name.

You should just pass it into the Install custom action. There's no practical
difference between Install and AfterInstall, even though the names imply
that one is at the beginning and one at the end.

Visual Studio adds a shim Dll to your setup. Windows Installer calls this in
a standard custom action way (as in the WI SDK) and the shim Dll then finds
your assembly, uses reflection etc as you say.

--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"Mark Assousa" <ma******@netscape.net> wrote in message
news:uc**************@TK2MSFTNGP15.phx.gbl...
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 application directory. The file name is
known but I don't know how to access the target installation folder during
the AfterInstall event of the Installer class. I'm certain this
information is available, I just don't know where it is. Any suggestions?

On a related note, I'm a little fuzzy on the linkage between an installer
class library and the install project itself. It appears you do not
explicitly instantiate the custom installer in code but reference the
class name under a special action and the special action uses Reflection
to locate and instantiate an instance of the class at install/uninstall
time. Is that correct?

Thanks in advance.

Nov 21 '05 #3
In a scant hundred years, I'm certain I would have found that. Thanks
for saving me a lot of time.

Phil Wilson wrote:
Pass TARGETDIR into your custom action CustomActionData like this:
http://msdn.microsoft.com/library/de...taproperty.asp

You get it from the IDictionary item associated with name if you used /name.

You should just pass it into the Install custom action. There's no practical
difference between Install and AfterInstall, even though the names imply
that one is at the beginning and one at the end.

Visual Studio adds a shim Dll to your setup. Windows Installer calls this in
a standard custom action way (as in the WI SDK) and the shim Dll then finds
your assembly, uses reflection etc as you say.

Nov 21 '05 #4

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

Similar topics

5
by: Thomas Miller | last post by:
I am deploying some software. I want the installer (wise, installshield, or whatever you reccommend) to smartly analyze the users computer and look to see if the .net framework is installed. If it...
0
by: Arun Bhalla | last post by:
I'm having some inconsistency problems with my deployment project ("Setup") and its custom actions ("Installer"). I'm using Visual Studio .NET 2003 (.NET 1.1, no service pack) on Windows XPSP1. ...
0
by: Tiziano | last post by:
I currently have installed .NET Framework 1.1 (_not_ the SDK version, though) on a Win2K PC. I am unable to apply the above-mentioned service pack via Windows Update. In the middle of the...
2
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically...
6
by: Tanzim Saqib | last post by:
Hello I am novice in VB.NET . I have developed a sample HelloWorld program and a setup application for it. VB.NET warned me that the client machine should install .NET Framework (DOTNETFX.EXE) in...
0
by: PKFGimpy | last post by:
Hi, I have a visual studio 2005 project with an installer project that creates an MSI. My PPC application requires that the Compact Framework 2.0 be installed to the device. This all works...
1
by: eva100801 | last post by:
Hi All, I have few questions about deploying windows apps developed in .Net framework. These days it is all about internet apps and services, and I need to develop small windows app and deployed...
0
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
Hi all! I am having problems on installing .NET Framework 3.5 on some machines. In one machine the error is: WinVerifyTrust returned -2146762751 Wintrust not on machine Error: O arquivo...
3
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
Hi all! I am having problems on installing .NET Framework 3.5 on some machines. In one machine the error is: '.NET Framework 3.5' RunCheck result: Install Needed Verifying file integrity of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
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...
0
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,...
0
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...

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.