Microsoft
Software
Hardware
Network
Question : Retreive msi path during custom action setup
I have a project with a setup
After the setup is done i need to copy a file from the location of the setup file to the installed directory.
Does anyone know how to retreive the path from where the setup was run.
Eample:
setup.msi in on d:\myprogram\setup.msi and installs to c:\program files\mycompany\myproduct\
At the end of the setup i need to run a custom action (I already have this) and the custom action needs to copy a txt file from d:\ to c:\program files\mycompany\myproduct\
where d:\ i variable (It depends where the user has the setup.msi file on his computer
I need the code in vb.net if possible (I could translate from C# to vb.net, but vb.net is preffered)
Answer : Retreive msi path during custom action setup
You can add the file in your deployment project.
Example: readme.txt
Add a Readme.txt file to install folder.
To do this, you first have to have a Readme.txt file.
I created a simple one and saved it. Then we start with the same options as changing the install folder. Select the Application Folder object. Then right-click, and select Add > File .... Select the Readme.txt file to include and click "Open".
Source:
http://visualbasic.about.c
om/od/usin
gvbnet/a/
S
etupProj02
_3.htm
Random Solutions
MS Project 2007, How to add a Column 'Percent'
vb.net selected item from listview
using required field validators to validate inputs for a textbox on an asp.net page
Page life expectancy
OK to remove "Windows\TEMP ?
Regional settings GREEK , decimal separator "," sql server 2000, But does not update a textbox tha binds to a float field,C# framework 2.0
Find a Text in a cell and copy it to another cell.
Access 2003: shell command - quest 2
Drawing and Scolling in Windows C# - ClientRectangle? Paint?
Access 2007 Union Query With Linked Tables