The following is a setup setups using WIX including additional important info. That you might find in a hard way.
- Install WIX (15 MB)
http://sourceforge.net/projects/wix/files/
- Build your application as release.
- Run heat.exe command given full paths for any input file or directory. This will generate application.wxs file that contains GUIDS of release components.
- Use the following command to remove unwanted files from the released application files:
xcopy RELEASE_PATH EXECLUDED_PATH /EXCLUDE:exclude.txt /E /Y
where execlude.txt is a text files that contains unwanted files' extentions. Its content might be as follows:
\.svn
\Properties
\obj
\Helper
.pdb
- Refer to WIX website to build your WIX deployment application.
- Install BootStrapper Manifest Generator that matches your Visual Studio version from here.
- This will help you to create prerequisites for your application.
- Finally you can use a .pat file to gather all in a single file. This .pat file may contains a code like this:
C:\Program Files\WinRAR\WinRAR" a -r -ep1 SETUPNAME SETUP_OUTPUT_PATH\* -s -sfx -zAnswers.diz -iiconico107.ico -m0
You have to note that WinRAR application should be installed, and Answers.diz is a .diz file that may contains a code like :
Overwrite=1
TempMode
Title=SETUP_TITLE
Silent=2
Setup=setup.exe
And ico107.ico is an ico file that will be the icon of the generated setup file. So that your setup including the prerequisites can be in a single setup file.
regarding Answers.diz file you might while using the step if it contains one or more prerequisite. After installing the prerequisites, you cannot install your application as it will be removed from the temp file.
ReplyDeleteThe solution to this problem is to change the Tempmode to Path= [folder path in drive C for example] like: Path= C:\MohamedAdel