![]() |
#1 |
Junior Member
Join Date: Jun 2006
Location: Sweden
Posts: 3
|
Visual Studio integration
Hello!
I would like to be able to create a VS project that has as its target a NSIS installer. Has anyone here been able to persuade VS to do this? Regards, Mattias |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Jun 2007
Location: Otrokovice, Czech Republic
Posts: 308
|
I don't understand your question. Do you want to build NSIS installer via MSVS?
|
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Jun 2006
Location: Sweden
Posts: 3
|
Yes, that's correct. I want to be able to create a sub project in my solution that will produce the NSIS installer (from my NSIS script). Typically I would have two projects in my solution; one that builds my application and one that builds the installer. When building the whole solution both projects would be built and the end result would be a NSIS installer.
Am I making any sense? :-) :.:: mattias |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Mar 2006
Location: Dallas
Posts: 462
|
You can use the command line to create the installer (run makensis.exe). The command can be done as a post compile step in visual studio.
Don |
![]() |
![]() |
![]() |
#5 | |
Member
Join Date: Oct 2003
Posts: 51
|
Quote:
We need to a) Build projects b) obfuscate the files c) make an installer d) make an auto updater (using NSIS), e) deploy the files and f) change our server's auto update logic to reflect that a new update is available to beta testers. I just can't see me pulling all that off from within Visual Studio. But if there's a way I could tell Visual Studio to run a script which runs steps b through f, I'd be very happy to find out how ![]() |
|
![]() |
![]() |
![]() |
#6 |
Senior Member
Join Date: Jun 2007
Location: Otrokovice, Czech Republic
Posts: 308
|
b) Do you mean "get" files? If you do then you could write batch to copy them
c) and maybe d) makensis e), f) On your choice "The way how to tell Visual studio" is the Post-build (on successfull build) in your project's settings. |
![]() |
![]() |
![]() |
#7 | |
Junior Member
Join Date: Sep 2007
Location: Bellevue, WA
Posts: 7
|
Quote:
That way I can Build (or Rebuild) just that one "Setup" project (via right-clicking on it in the Solution Explorer pane and selecting "Project Only"->"Rebuild only xxx") without having to rebuild the prerequisite project that creates all the product binaries (which can conceivably, depending on the size of your "product", take quite a long time!). That is to say, there's no need to Rebuild your product binaries in order to rebuild/test your product's INSTALLER project! ![]() Just a thought. <shrug> |
|
![]() |
![]() |
![]() |
#8 |
Senior Member
Join Date: Jun 2007
Location: Otrokovice, Czech Republic
Posts: 308
|
Yes, you're right, you can do it that way.
|
![]() |
![]() |
![]() |
#9 | |
Junior Member
Join Date: Sep 2007
Posts: 2
|
Quote:
Hope that helps! |
|
![]() |
![]() |
![]() |
#10 | |
Senior Member
Join Date: Aug 2007
Location: Paris, France
Posts: 304
|
for the URLs
Quote:
|
|
![]() |
![]() |
![]() |
#11 |
Junior Member
Join Date: Jul 2008
Location: Colorado Springs
Posts: 1
|
A Thoughtful Idea
Althought it's not a Visual Studio add-in, the iNSISt Framework (http://www.codeplex.com/insist) looks promising, and a Visual Studio add-in could easily be built on top of it.
For example, since the framework uses XML files to auto-generate NSIS scripts, a Visual Studio add-in would simply have to edit/regenerate an XML file each time a project's structure changes (files are added, removed, etc.). Then, as was mentioned in previous posts, there are several ways to use Visual Studio to invoke the NSIS compiler on the generated script to "build" it. This would essentially automate the process of maintaining NSIS scripts for VS projects. |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|