troubleshooting Question

Retreive msi path during custom action setup

Avatar of Sanderk
Sanderk asked on
.NET ProgrammingInstallation
1 Comment1 Solution559 ViewsLast Modified:
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.

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 if possible (I could translate from C# to, but is preffered)
Dirk Haest
Project manager

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros