Custom actions in deployment project

J

Jonas Bergman

After installation, I want to share one of the folders.

First of all, I don´t know how to perform sharing programmatically in a good
way, right now I have a small C#-program that calls "NET.EXE SHARE".

Everything works now, the program is run after the installation.
But I don´t want the program to remain in the application folder. It should
be deleted.

How do I do this?

/Jonas Bergman
 
P

Phil Wilson

You should be able to right-click on the code file in the solution explorer
of the setup project and set the Exclude property to True. That will store
the exe in the Binary table of the MSI file, and extract and run it in a
temp folder so that it's not permanently installed.
 
J

Jonas Bergman

Thanks!

/Jonas

Phil Wilson said:
You should be able to right-click on the code file in the solution explorer
of the setup project and set the Exclude property to True. That will store
the exe in the Binary table of the MSI file, and extract and run it in a
temp folder so that it's not permanently installed.
--
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

Jonas Bergman said:
After installation, I want to share one of the folders.

First of all, I don´t know how to perform sharing programmatically in a good
way, right now I have a small C#-program that calls "NET.EXE SHARE".

Everything works now, the program is run after the installation.
But I don´t want the program to remain in the application folder. It should
be deleted.

How do I do this?

/Jonas Bergman
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top