473,324 Members | 1,678 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,324 software developers and data experts.

Custom actions in deployment project

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
Nov 22 '05 #1
2 1555
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" <jo***********@systeam.se> wrote in message
news:eT**************@TK2MSFTNGP09.phx.gbl...
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

Nov 22 '05 #2
Thanks!

/Jonas

"Phil Wilson" <pd*******@nospam.cox.net> wrote in message
news:eH**************@tk2msftngp13.phx.gbl...
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" <jo***********@systeam.se> wrote in message
news:eT**************@TK2MSFTNGP09.phx.gbl...
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


Nov 22 '05 #3

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

Similar topics

0
by: Martin | last post by:
I am trying to create a setup project for my C# winforms application. The setup project works perfectly, for the most part. The difficulty I am having is this: I want to run two custom actions...
1
by: Angela | last post by:
I wrote a class that I intended to be a custom action. I added the DLL for the class to the setup project using the CustomActions editor. When I run the installer it completely ignores the custom...
1
by: Petrucci2000 | last post by:
Hi All, I am looking to create an installation package (MSI ) which will fire off few of my custom .vbs during the install process. How to accomplish this task? TIA PS: I tried to include...
6
by: | last post by:
Hi, I added dotnetfx.exe to a setup project as a custom action to be installed before the main app is installed. I set the Arguments property to /q:a /c:"install /l /q" for a silent install...
0
by: Kemin | last post by:
Recently I built an ASP.NET application Installation program for deployment. The ASP.NET app use a Sql Server db, I package it into the installation file too. The general step of building an...
1
by: Gene | last post by:
I would like to know if the following is even possible with the visual studio.net Setup and Deployment project. 1. During the deployment after creation of application directory the setup needs...
10
by: =?Utf-8?B?SmFjayBTbWl0aA==?= | last post by:
Hello, I have a solution that contains a C# application that is installed and runs as a service. The solution also contains several DLLs, some of which are C# assemblies and some are C++ DLLs. ...
13
by: Matt F | last post by:
I have a deployment project that I'm setting up. I need to perform a different custom action based on whether this is a first time install or an update. Does anyone have any idea if it's possible...
1
by: =?Utf-8?B?Qi5BaGxzdGVkdA==?= | last post by:
Hi all, This is something that I have been toying with for about a week now. What I want to achieve is Install a Service with Customised parameters (using InstallUtil.exe) for User Name. Example...
3
by: KennethLundin | last post by:
Hi, i'm developing a solution in VS9/CSharp. Now I'm constructing a deployment project for my appliation (thick, database driven, winforms, standard, good old type of application). During...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.