.NET Framework Bookmark and Share   
 index > MSBuild > Installer creation
 

Installer creation

Hi
I am using VS2005 and I have created an installer project (vdproj) for my application.
I am using devenv command line to build it since vcbuild does not support fdproj in this version.
I want to be able to change the installer properties values like version when I build my app without having to edit the projet in devenv.
How can I do that.
Thanks

Christian
  • Moved byYiChun ChenMSFTFriday, September 18, 2009 6:12 AMMSBuild issue (From:Visual Studio Setup and Installation)
  •  
ChrislRoy

Hi Christian,

Based on my understanding, you can't use msiexec command line to modify the installer properties, itjustProvide the means to install, modify, and perform operations on Windows Installer but not properties, for more information, you can see Msiexec (command-line options).If you want to ask questions about misexec, you can post this question in our "ClickOnce and Setup & Deployment Projects " forum with link:

http://social.msdn.microsoft.com/Forums/en-US/winformssetup/threads

I'm not familiar with Python Script,so I don't know whether it can achieve your requirement, but I would suggest you use Wix for we can set the properties for wix in MSBuild, pleaserefer tothese arcticles:

Best Regards,
Nancy



Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Nancy Shao
Hi Christian,

I am moving this thread from Base "Visual Studio Setup and Installation" forum to the "MSBuild" forum. There are more experts in the "MSBuild" forum.

Thanks
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
YiChun Chen
Hi Christian,

You're right, VCBuild and MSBuild does not supportto buildsetup project (.vdproj) in command line, because Setup projects (.vdproj) do not have a project system format that can be understood by MSBuild or VCBuild. But you can use devenv.exe command to build .vdproj:

devenv setup.vdproj /build "Debug|Any CPU"


If you want to modify the value in installer properties via command line, as far as I know, it's hard to do that, I would suggest you modify this value in IDE.

If I misunderstood you, or you have any questions, please let me know.

Best Regards,
Nancy



Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Nancy Shao
Thanks Nancy

I am already building with devenv. I am using an automated build process so updating the vdproj file each time is impossible.

What I decided to do is write a python script to mangle the vdproj file before launching the devenv command. This allows me to modify the vdproj properties with new values everynight.

From my reading, we might be able to perform the same type of operation using a batch file to trigger the install using the msiexec - but I had no luck making it work.


IS this the forum to ask the question about msiexec?

Christian
Christian
ChrislRoy

Hi Christian,

Based on my understanding, you can't use msiexec command line to modify the installer properties, itjustProvide the means to install, modify, and perform operations on Windows Installer but not properties, for more information, you can see Msiexec (command-line options).If you want to ask questions about misexec, you can post this question in our "ClickOnce and Setup & Deployment Projects " forum with link:

http://social.msdn.microsoft.com/Forums/en-US/winformssetup/threads

I'm not familiar with Python Script,so I don't know whether it can achieve your requirement, but I would suggest you use Wix for we can set the properties for wix in MSBuild, pleaserefer tothese arcticles:

Best Regards,
Nancy



Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Nancy Shao

You can use google to search for other answers

Custom Search

More Threads

• Build .NET binaries automatically (build procedure).
• [Suggestion] Un-shuffle Output Window lines
• How to initialize Properties before an ItemGroup executes in MSBuild
• How find produced output?
• forcing a target to clean and rebuild using msbuild
• MSBuild v. 3.5: Error MSB4018 building Sharepoint Workflows with MSBuild
• Debug to Release mode switching takes MINUTES with SP1!?
• Output param from a custom Task
• Could Not Load Type XXX From Assembly YYY
• putty, mix env (window, unix)