Custom actions in deployment project

  • Thread starter Thread starter Jonas Bergman
  • Start date Start date
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
 
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.
 
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
 
Back
Top