Click here to Skip to main content
15,900,254 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi , i cant get mt program to install, i double click the setup, then it has a loading splash then its gone, nothing installed > my code>
Product Id="*" Name="SetupProject1" Language="1033" Version="1.0.0.0" Manufacturer="james" UpgradeCode="c0e1cb33-a89b-44ba-b8ef-a178f61548cb">
Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
MediaTemplate />

Feature Id="ProductFeature" Title="SetupProject1" Level="1">
<componentgroupref id="ProductComponents">
/Feature>
/Product>

Fragment>
!-- Will default to C:\ if that is the main disk-->
Directory Id="TARGETDIR" Name="SourceDir">
!-- Will reference to C:\speech-->
Directory Id="james" Name="speech">
!-- Will reference to c:\speech\james-->
Directory Id="INSTALLFOLDER" Name="james" />
/Directory>
/Directory>
/Fragment>

Fragment>
ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
Component Id="ProductComponent" Guid="{6F44232F-1C0B-4278-AB2B-BFD34FAE863C}">
File Id="favicon.ico" Source="..\james\favicon.ico" />
File Id="Global.asax" Source="..\james\Global.asax" />
File Id="Web.config" Source="..\james\Web.config" />
/Component>
/ComponentGroup>
ComponentGroup Id="BinComponents" Directory="BIN">
Component Id="BinComponent" Guid="{A41811D7-49DD-462B-98D2-56DF1202008E}">
File Id="Antlr3.Runtime.dll" Source="..\james\bin\Antlr3.Runtime.dll" />
File Id="DotNetOpenAuth.AspNet.dll" Source="..\james\bin\DotNetOpenAuth.AspNet.dll" />
!-- And so on and on -->
/Component>
/ComponentGroup>
/Fragment>
/Wix>
- i get an error (unresolved refrence to symbol DirectoryBIN in section fragment
also im following some tutorials on this :)
Posted
Comments
Sarath kumar.N 13-Aug-15 6:05am    
From the error message u have given. There is already a higher version running on the system.Please uninstall the version and try again.
jamesmc1535 13-Aug-15 6:13am    
alright makes sense , but to what is it refering to as already installed,? coz this is the 1st instalation i did
Sarath kumar.N 13-Aug-15 8:11am    
If u want create installer u can use oneclick publish in visual studio
jamesmc1535 13-Aug-15 8:16am    
im using 2015 and ive read multiple times that visual studios doesnt support it no more
Sarath kumar.N 13-Aug-15 8:18am    
you want create a setup for a application right? Then I can help you!

1 solution

Please follow the below links :

A step by step tutorial with images

If u have good network u can watch this youtube video then u can understand easily.

Youtube video

If u have any doubt u can ask after reading those links.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900