I have a setup project in c#. i want that setup run 2 exe file from the installed files after installation. How can i set which file to be run after installation.
Any suggestion would be highly appriciated
Add a custom action as below...
After the install complete, it should run the application automatically.
Launching Your Application After Install using Visual Studio
Related
I hope you all are well!
Visual Studio 2017 -
WIN-FORM -
C#
I added a Setup Project to my app.
I also selected as prerequisites SQL Server 2019 Express LocalDB:
The installer installs the app just fine but does not install the prerequisites SQL Server 2019 Express LocalDB. There are no popup error messages displayed or any in the Event Viewer.
If I download SqlLocalDB, I install it just fine and my app works. But I would like to have it install during the setup installation if it is needed (auto detect).
I tried on various computers and it also doesn't install SqlLocalDB.
I cannot find anything on the Internet that would explain why setup is not installing the prerequisites.
Any suggestion is appreciated.
Regards,
Setup projects are no more supported starting from VS 2019. So if it's a new project - you might want to try WiX toolset project. There you can add checking of prerequisites to be installed on the MSI level, or you can create your Bootstrapper bundle, which will contain installation for both SQL Server and your own app
The issue was that I was using the .MSI instead of the .EXE file to install the app. Using the .EXE did in indeed prompt the user to installSqlLocalDB.
Solution here:
I am a newbie in creating the setup projects and I have created a "myfirstSetup" project. Its working good, but it has a dependency or I should say a prerequisite to be installed before its installation. I want that prerequisite to be installed during my project installation.
Till now I have done following things :
1.) Added the prerequisite by going myfirstSetup Properties
2.) Select the prerequisite
3.) Check the Download Prerequisite from the same location as my application
The .exe that is being created is installing the prerequisite but the .msi is only installing my project.
any help will be appreciated thank you.
That's the way it works - the setup.exe installs prerequisites and then your MSI installs your project. There are many reasons for this. Is there an actual problem or do you just believe your MSI file should be able to install prerequisites like the .NET framework, SQL Express and so on?
I got my app successfully published, ran the setup.exe just fine, but it lloks like the app was installed in an odd place, buried way down deep:
C:\Users\sndevfarmsvc\AppData\Local\Apps\2.0\HQ0721DB.Z4Q\8TDK6PMR.A39
Is this normal? In the publish section of the project in VS 2010 there is a place for installation folder, but that requires a URL....what if I want it always to install to c:\program files\ on whatever machine it is run on?
thanks,
Phil J.
Yes that's normal for a ClickOnce application.
The installation folder is the location where there application is installed from.
If you want to install into a different location you'll have to use a different installation program.
I am writing an installer for a c# application using visual studio 2008.There i have created a setup project and created the .msi file also.it is working properly.Now I need to run my application at the end of the installation.Is there any way to override the installer class to do that?
need a help
thanks
Download Orca from microsoft which lets you read and edit msi files. That helped me puzzle out a different problem with installs.
And check this out Run exe after msi installation?
does it have to be in MSI ? why not have a batch file (run.bat) and run your msi first followed by your app
I want to create a very simple .exe that will install a driver. I have an .inf (and all it's DLL files). The driver is for a usb device.
The end goal is to find a simple solution to install a driver with my application installer. The installer is generated using Visual Studio 2008 setup and deployment project. I believe that having a separate exe that does the driver install can be called by my setup and deployment project.
I am a newbie at this so i am looking for a step by step tutorial or something that i can really understand.
Please help :(
EDIT:
The following command line installs the driver just fine. How can I transfer this into a EXE or DLL, which can be launched by custom actions in Visual Studio
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 .\<file>.inf
Have you checked How do I deploy a .inf based driver?
The Visual Studio Setup & Deployment project is fairly limited in functionality: probably the easiest way to create an installer for your driver is to use WiX and DIFx - you just need to add a difx:Driver tag to your source file and use the WixDifxAppExtension extension when running candle/light. An example from the project I work on can be seen at http://www.bluestop.org/viewvc/repos/sctpDrv/trunk/wix/ - the candle/light commands are in Makefile.wix and module-common.wxs contains the DIFx code.
The output of WiX is an MSI file. If you want a .exe I'd recommend using dotNetInstaller, which can bootstrap any prerequisites before running your MSI.
Doesn't the .inf file itself install the driver?
If for some reason you are using a tool that (unlike say explorer) isn't smart enough to know that is what inf's are for, perhaps you could write a little program that tells windows explorer to run the inf file.
I believe that the 'start' command will run an associated file at the command line.
So a one line script aught to do (example run.cmd file):
start myWordDoc.doc
That command will open up Word and Load that document.
It 'should' do the same for INF files, let me know if it does.