How to build new installer?
How to build new installer?
Hi, I am new to Wix Toolset, infact I am new to Window Installers as a whole, so forgive me if I overlooked something obvious.I cloned a fork of the digiCamControl source and did some modifications to files and added some new stuff in a new folder in CameraControl. Now it seems to be working okay in VS2013 so I am looking at making an installer of the modified program. But when I build the Setup_digiCamControl, I get no less than 464 errors! e.g. Error 2 The system cannot find the file 'C:\Users\hp\Documents\Visual Studio 2013\Projects\ICSSwCamCtrl\CameraControl\bin\Debug\\CameraControlCmd.exe'. C:\Users\hp\Documents\Visual Studio 2013\Projects\ICSSwCamCtrl\Setup_digiCamControl\Files.wxs 63 1 Setup_digiCamControl line 63 of Files.wxs in Setup_digiCamControl is the center File Id <Component Id="cmp7B7EC120ADCA51A9A160440111934D53" Directory="INSTALLFOLDER" Guid="{C1E80360-FD97-4670-BD13-60633B2B6B8E}"> <File Id="filA6E658DB095EF5201884335A542FB965" KeyPath="yes" Source="$(var.CameraControl.TargetDir)\CameraControl.PluginManager.pdb" /> </Component> <Component Id="cmpEE8F629BEE3E6BE2B085132CDFD31F21" Directory="INSTALLFOLDER" Guid="{B6C210E0-044C-4C36-8244-45A895CC6391}"> <File Id="fil77A786CE2882D6409DE9A3139C5409B0" KeyPath="yes" Source="$(var.CameraControl.TargetDir)\CameraControlCmd.exe" /> </Component> <Component Id="cmp9A0F2F1C7EA288EA847DA1500D859043" Directory="INSTALLFOLDER" Guid="{A41B8894-193A-4E84-80E1-BDC3527A2E36}"> <File Id="filE0B6B79679B3831EA2754C2A706BDB96" KeyPath="yes" Source="$(var.CameraControl.TargetDir)\Canon.Eos.Framework.dll" /> </Component> I checked the respective directories and yes the files in error are not present. But there are so many of them that I know I am missing something basic. What am I doing wrong please?
by the way ....
I'm having problems with PostBuild.bat.My path has many spaces ......
-
- Posts: 867
- Joined: Tue Mar 26, 2013 9:52 pm
Hi, i will check the postbuil
Hi, i will check the postbuil.bat if the build path is with space. The wix project no yet finished (i don't have enoug time for it) you can disable it, still the nsis installer is used . Try to edit the bat file in this way: copy "%1CameraControlCmd\Bin\%2\CameraControlCmd.exe" "%1CameraControl\Bin\%2\" /Y
Spaces not the final frontier
I copied the directories to a path with no spaces and I got 434 errors! Here are some ...Error 1 The system cannot find the file 'C:\Users\hp\cs_ws\ICSSwCamCtrl\CameraControl\bin\Debug\\Castle.Core.dll'. C:\Users\hp\cs_ws\ICSSwCamCtrl\Setup_digiCamControl\Files.wxs 72 1 Setup_digiCamControlError 7 The system cannot find the file 'C:\Users\hp\cs_ws\ICSSwCamCtrl\CameraControl\bin\Debug\\icc\1001_F.BIN'. C:\Users\hp\cs_ws\ICSSwCamCtrl\Setup_digiCamControl\Files.wxs 186 1 Setup_digiCamControlError 8 The system cannot find the file 'C:\Users\hp\cs_ws\ICSSwCamCtrl\CameraControl\bin\Debug\\icc\1001_faf.BIN'. C:\Users\hp\cs_ws\ICSSwCamCtrl\Setup_digiCamControl\Files.wxs 189 1 Setup_digiCamControlError 9 The system cannot find the file 'C:\Users\hp\cs_ws\ICSSwCamCtrl\CameraControl\bin\Debug\\icc\1001_L.BIN'. C:\Users\hp\cs_ws\ICSSwCamCtrl\Setup_digiCamControl\Files.wxs 192 1 Setup_digiCamControl I think I've eliminated some of the errors (30!) but this Castle.Core.dll, I cannot find in the whole directory structure. I have however another copy of your code digicamcontrol-code-0-599-trunk and there is Castle.Core.dll in the packages library but this is not present in the recent clone. Also, for the 1001_F.BIN, in 0-599-trunk it is in CameraControl.Application\icc along with 389 other .BIN files. But in the clone I have, there is no CameraControl.Application\icc directory!
Did more checking
Apparently, the Files.wxs looks for lots of files which are not there e.g.- files in $(var.CameraControl.TargetDir)\icc\ - 389 files- files in $(var.CameraControl.TargetDir)\ufraw\ - 14 files- files in $(var.CameraControl.TargetDir)\VirtualDub\ - 16 files- files in $(var.CameraControl.TargetDir)\Languages\ - 7 files- other filesI can see the Languages files have been converted from e.g. da\string.xml to da.xml. So I guess that the Files.wxs is out of sync with the CameraControl.Application directories. However most of these are available in the digicamcontrol-code-0-599-trunk directories! How to solve this please?
-
- Posts: 867
- Joined: Tue Mar 26, 2013 9:52 pm
Please just disable the wix
Please just disable the wix project wasn't updated a long time ago or even you can remove it.
Then How do I build an installer please?
The software is large and there are many projects. I am new to Visual Studio and C# generally. I would like to follow on the way you build the installer so how do I proceed please?
-
- Posts: 867
- Joined: Tue Mar 26, 2013 9:52 pm
The application use nsis
The application use nsis installer, if you install it, you can use context menu to generate installer on CameraControl\nsis\setup.nsi file