build: renaming to sourcetrail
This commit is contained in:
@@ -35,34 +35,34 @@ namespace SetupAppSettings
|
||||
private static void RemoveLogFolder()
|
||||
{
|
||||
// remove logs
|
||||
string path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Coati\\log";
|
||||
string path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Sourcetrail\\log";
|
||||
if (Directory.Exists(path))
|
||||
{
|
||||
Directory.Delete(path, true);
|
||||
}
|
||||
|
||||
// remove sample projects
|
||||
path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Coati\\projects\\tutorial";
|
||||
path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Sourcetrail\\projects\\tutorial";
|
||||
if(Directory.Exists(path))
|
||||
{
|
||||
Directory.Delete(path, true);
|
||||
}
|
||||
|
||||
path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Coati\\projects\\tictactoe";
|
||||
path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Sourcetrail\\projects\\tictactoe";
|
||||
if (Directory.Exists(path))
|
||||
{
|
||||
Directory.Delete(path, true);
|
||||
}
|
||||
|
||||
// remove projects folder if empty (avoid deleting user generated files)
|
||||
path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Coati\\projects";
|
||||
path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Sourcetrail\\projects";
|
||||
if (Directory.Exists(path) && !Directory.EnumerateFileSystemEntries(path).Any())
|
||||
{
|
||||
Directory.Delete(path, true);
|
||||
}
|
||||
|
||||
// remove coati folder if empty (may not be empty if user stored stuff in here)
|
||||
path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Coati";
|
||||
// remove sourcetrail folder if empty (may not be empty if user stored stuff in here)
|
||||
path = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software\\Sourcetrail";
|
||||
if (Directory.Exists(path) && !Directory.EnumerateFileSystemEntries(path).Any())
|
||||
{
|
||||
Directory.Delete(path, true);
|
||||
@@ -74,9 +74,9 @@ namespace SetupAppSettings
|
||||
Directory.Delete(path, true);
|
||||
}
|
||||
|
||||
//string coatiPath = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software";
|
||||
//string sourcetrailPath = Environment.GetEnvironmentVariable("APPDATA") + "\\..\\local\\Coati Software";
|
||||
|
||||
//Directory.Delete(coatiPath, true);
|
||||
//Directory.Delete(sourcetrailPath, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,22 +5,22 @@ int main()
|
||||
{
|
||||
HKEY hKey;
|
||||
#ifdef WIN64
|
||||
LONG lResult = RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("Software\\Coati Software OG\\Coati 64-bit\\coatiSoftwareAppData"), 0, KEY_READ, &hKey);
|
||||
LONG lResult = RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("Software\\Coati Software OG\\Sourcetrail 64-bit\\sourcetrailAppData"), 0, KEY_READ, &hKey);
|
||||
#else
|
||||
LONG lResult = RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("Software\\Coati Software OG\\Coati\\coatiSoftwareAppData"), 0, KEY_READ, &hKey);
|
||||
LONG lResult = RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("Software\\Coati Software OG\\Sourcetrail\\sourcetrailAppData"), 0, KEY_READ, &hKey);
|
||||
#endif
|
||||
if (lResult == ERROR_SUCCESS)
|
||||
{
|
||||
std::cout << "Coati found" << std::endl;
|
||||
std::cout << "Sourcetrail found" << std::endl;
|
||||
std::cout << "Performing upgrade" << std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "Coati not found" << std::endl;
|
||||
std::cout << "Sourcetrail not found" << std::endl;
|
||||
std::cout << "Performing initial installation" << std::endl;
|
||||
}
|
||||
|
||||
system("msiexec /i coati.msi");
|
||||
system("msiexec /i sourcetrail.msi");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<?endif ?>
|
||||
|
||||
<Fragment>
|
||||
<DirectoryRef Id='CoatiAppData'>
|
||||
<DirectoryRef Id='SourcetrailAppData'>
|
||||
<Directory Id="SampleProjects" Name="projects">
|
||||
|
||||
<Component Id="SampleProjects" Guid="12F6C3BE-CE83-441A-8A5D-E49EA1483F24" Win64="$(var.Win64)">
|
||||
@@ -17,14 +17,14 @@
|
||||
</Component>
|
||||
|
||||
<Directory Id="SampleProjectTictactoe" Name="tictactoe">
|
||||
<Component Id="TictactoeCoatiproject" Guid="E353FD02-79FD-4409-9874-3282B038DD12" Win64="$(var.Win64)">
|
||||
<Component Id="TictactoeSourcetrailproject" Guid="E353FD02-79FD-4409-9874-3282B038DD12" Win64="$(var.Win64)">
|
||||
<CreateFolder />
|
||||
<RemoveFolder Id='SampleProjectTictactoe' On='uninstall' />
|
||||
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\tictactoeProjectKey" Root="HKCU" >
|
||||
<RegistryValue Type="integer" Value="1" KeyPath="yes" />
|
||||
</RegistryKey>
|
||||
<File Id='TictactoeDb' Name='tictactoe.coatidb' DiskId='1' Source='./../../../bin/app/user/projects/tictactoe/tictactoe.coatidb' KeyPath='no' />
|
||||
<File Id='TictactoeProject' Name='tictactoe.coatiproject' DiskId='1' Source='./../../../bin/app/user/projects/tictactoe/tictactoe.coatiproject' KeyPath='no' />
|
||||
<File Id='TictactoeDb' Name='tictactoe.srctrldb' DiskId='1' Source='./../../../bin/app/user/projects/tictactoe/tictactoe.srctrldb' KeyPath='no' />
|
||||
<File Id='TictactoeProject' Name='tictactoe.srctrlprj' DiskId='1' Source='./../../../bin/app/user/projects/tictactoe/tictactoe.srctrlprj' KeyPath='no' />
|
||||
</Component>
|
||||
|
||||
<Directory Id="TictactoeSrc" Name="src">
|
||||
@@ -59,14 +59,14 @@
|
||||
</Directory>
|
||||
|
||||
<Directory Id="SampleProjectTutorial" Name="tutorial">
|
||||
<Component Id="TutorialCoatiproject" Guid="D7976D20-0447-4628-942B-0C8BE49E190E" Win64="$(var.Win64)">
|
||||
<Component Id="TutorialSourcetrailproject" Guid="D7976D20-0447-4628-942B-0C8BE49E190E" Win64="$(var.Win64)">
|
||||
<CreateFolder />
|
||||
<RemoveFolder Id='SampleProjectTutorial' On='uninstall' />
|
||||
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\tutorialProjectKey" Root="HKCU" >
|
||||
<RegistryValue Type="integer" Value="1" KeyPath="yes" />
|
||||
</RegistryKey>
|
||||
<File Id='TutorialDb' Name='tutorial.coatidb' DiskId='1' Source='./../../../bin/app/user/projects/tutorial/tutorial.coatidb' KeyPath='no' />
|
||||
<File Id='TutorialProject' Name='tutorial.coatiproject' DiskId='1' Source='./../../../bin/app/user/projects/tutorial/tutorial.coatiproject' KeyPath='no' />
|
||||
<File Id='TutorialDb' Name='tutorial.srctrldb' DiskId='1' Source='./../../../bin/app/user/projects/tutorial/tutorial.srctrldb' KeyPath='no' />
|
||||
<File Id='TutorialProject' Name='tutorial.srctrlprj' DiskId='1' Source='./../../../bin/app/user/projects/tutorial/tutorial.srctrlprj' KeyPath='no' />
|
||||
</Component>
|
||||
|
||||
<Directory Id="TutorialSrc" Name="src">
|
||||
@@ -101,14 +101,14 @@
|
||||
</Directory>
|
||||
|
||||
<Directory Id="SampleProjectJavaparser" Name="javaparser">
|
||||
<Component Id="JavaparserCoatiproject" Guid="39B413EF-C9F4-4B06-BF91-028C7D931303" Win64="$(var.Win64)">
|
||||
<Component Id="JavaparserSourcetrailproject" Guid="39B413EF-C9F4-4B06-BF91-028C7D931303" Win64="$(var.Win64)">
|
||||
<CreateFolder />
|
||||
<RemoveFolder Id='SampleProjectJavaparser' On='uninstall' />
|
||||
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\JavaparserCoatiprojectKey" Root="HKCU" >
|
||||
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\JavaparserSourcetrailprojectKey" Root="HKCU" >
|
||||
<RegistryValue Type="integer" Value="1" KeyPath="yes" />
|
||||
</RegistryKey>
|
||||
<File Id='JavaparserDb' Name='javaparser.coatidb' DiskId='1' Source='./../../../bin/app/user/projects/javaparser/javaparser.coatidb' KeyPath='no' />
|
||||
<File Id='JavaparserProject' Name='javaparser.coatiproject' DiskId='1' Source='./../../../bin/app/user/projects/javaparser/javaparser.coatiproject' KeyPath='no' />
|
||||
<File Id='JavaparserDb' Name='javaparser.srctrldb' DiskId='1' Source='./../../../bin/app/user/projects/javaparser/javaparser.srctrldb' KeyPath='no' />
|
||||
<File Id='JavaparserProject' Name='javaparser.srctrlprj' DiskId='1' Source='./../../../bin/app/user/projects/javaparser/javaparser.srctrlprj' KeyPath='no' />
|
||||
</Component>
|
||||
<Directory Id="SampleProjectJavaparserSrc" Name="src">
|
||||
<Component Id="SampleProjectJavaparserSrcFolder" Guid="560AEF91-AE8A-485B-BC69-928D3584EE05" Win64="$(var.Win64)">
|
||||
|
||||
@@ -32,10 +32,10 @@ OUTPUT_DIR=bin/$WIN_ARCH
|
||||
rm -rf $OUTPUT_DIR
|
||||
mkdir $OUTPUT_DIR
|
||||
|
||||
candle.exe -dProductVersion="$VERSION_STRING" -dProductGuid="$PRODUCT_GUID" -arch $X_ARCH coati.wxs customActions.wxs dialogShortcuts.wxs installDir.wxs appDataDir.wxs -out build/ > build/compileLog.txt
|
||||
light.exe -ext WixUIExtension build/coati.wixobj build/customActions.wixobj build/dialogShortcuts.wixobj build/installDir.wixobj build/appDataDir.wixobj -out build/coati.msi > build/linkLog.txt
|
||||
candle.exe -dProductVersion="$VERSION_STRING" -dProductGuid="$PRODUCT_GUID" -arch $X_ARCH sourcetrail.wxs customActions.wxs dialogShortcuts.wxs installDir.wxs appDataDir.wxs -out build/ > build/compileLog.txt
|
||||
light.exe -ext WixUIExtension build/sourcetrail.wixobj build/customActions.wixobj build/dialogShortcuts.wixobj build/installDir.wixobj build/appDataDir.wixobj -out build/sourcetrail.msi > build/linkLog.txt
|
||||
|
||||
cp -u -r build/coati.msi $OUTPUT_DIR
|
||||
cp -u -r build/sourcetrail.msi $OUTPUT_DIR
|
||||
cp -u -r build/Setup.exe $OUTPUT_DIR
|
||||
cp -u -r lib/$WIN_ARCH/* $OUTPUT_DIR
|
||||
cp -u -r readme.txt $OUTPUT_DIR
|
||||
@@ -11,7 +11,7 @@
|
||||
<Text>{\DlgTitleFont}Create shortcuts</Text>
|
||||
</Control>
|
||||
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
|
||||
<Text>Do you want to create shortcuts for Coati?</Text>
|
||||
<Text>Do you want to create shortcuts for Sourcetrail?</Text>
|
||||
</Control>
|
||||
|
||||
<Control Id="DesktopShortcutCheckBox" Type="CheckBox" X="25" Y="50" Width="290" Height="17"
|
||||
|
||||
@@ -13,17 +13,20 @@
|
||||
<DirectoryRef Id='INSTALLDIR'>
|
||||
|
||||
<Component Id='MainExecutable' Guid='A6136907-B3C5-4393-88D7-2ACF63E138A8' Win64="$(var.Win64)">
|
||||
<File Id='CoatiEXE' Name='Coati.exe' DiskId='1' Source='$(var.PlatformSourceFolder)/Coati.exe' KeyPath='yes' />
|
||||
<File Id='SourcetrailEXE' Name='Sourcetrail.exe' DiskId='1' Source='$(var.PlatformSourceFolder)/Sourcetrail.exe' KeyPath='yes' />
|
||||
|
||||
<!-- File association -->
|
||||
<RegistryValue Root="HKLM" Key="SOFTWARE\Classes\[ProductName].Document" Name="projectfile" Value="Coati project file" Type="string" />
|
||||
<ProgId Id='Coati.coatiprojectfile' Description='Coati project file' Advertise='yes' Icon='Project.ico'>
|
||||
<RegistryValue Root="HKLM" Key="SOFTWARE\Classes\[ProductName].Document" Name="projectfile" Value="Sourcetrail project file" Type="string" />
|
||||
<ProgId Id='Sourcetrail.sourcetrailprojectfile' Description='Sourcetrail project file' Advertise='yes' Icon='Project.ico'>
|
||||
<Extension Id='srctrlprj'> <!-- ContentType='application/sourcetrailproject' Advertise='no' -->
|
||||
<Verb Id='open' Command='Open' Argument='"%1"' />
|
||||
<MIME Advertise='yes' ContentType='application/sourcetrailproject' Default='yes' />
|
||||
</Extension>
|
||||
<Extension Id='coatiproject'> <!-- ContentType='application/coatiproject' Advertise='no' -->
|
||||
<Verb Id='open' Command='Open' Argument='"%1"' />
|
||||
<MIME Advertise='yes' ContentType='application/coatiproject' Default='yes' />
|
||||
</Extension>
|
||||
</ProgId>
|
||||
|
||||
</Component>
|
||||
|
||||
<Component Id='Qt5CoreDll' Guid='0C899A49-DE40-4D35-A0E9-9B64E330BCFA' Win64="$(var.Win64)">
|
||||
@@ -283,8 +286,8 @@
|
||||
<Component Id='LogoAwsPng' Guid='B20C4EB0-1782-4575-A653-F48DE9D9C4B8' Win64="$(var.Win64)">
|
||||
<File Id='LogoAws' Name='logo_aws.png' DiskId='1' Source='./../../../bin/app/data/gui/about/logo_aws.png' KeyPath='yes' />
|
||||
</Component>
|
||||
<Component Id='LogoCoatiPng' Guid='3ACD90D9-6099-4E95-AD99-AF7CD695BEB9' Win64="$(var.Win64)">
|
||||
<File Id='LogoCoati' Name='logo_coati.png' DiskId='1' Source='./../../../bin/app/data/gui/about/logo_coati.png' KeyPath='yes' />
|
||||
<Component Id='LogoSourcetrailPng' Guid='3ACD90D9-6099-4E95-AD99-AF7CD695BEB9' Win64="$(var.Win64)">
|
||||
<File Id='LogoSourcetrail' Name='logo_sourcetrail.png' DiskId='1' Source='./../../../bin/app/data/gui/about/logo_sourcetrail.png' KeyPath='yes' />
|
||||
</Component>
|
||||
<Component Id='LogoFhsPng' Guid='1CEBF789-6E41-4E33-A04B-5B809343C665' Win64="$(var.Win64)">
|
||||
<File Id='LogoFhs' Name='logo_fhs.png' DiskId='1' Source='./../../../bin/app/data/gui/about/logo_fhs.png' KeyPath='yes' />
|
||||
@@ -438,8 +441,8 @@
|
||||
<Component Id='Cdb_icon_Png' Guid='BFEF4175-69DA-49E3-A650-9C5995A3E8E7' Win64="$(var.Win64)">
|
||||
<File Id='Cdb_icon' Name='cdb_icon.png' DiskId='1' Source='./../../../bin/app/data/gui/icon/cdb_icon.png' KeyPath='yes' />
|
||||
</Component>
|
||||
<Component Id='CoatiIco' Guid='9D65B057-EA87-4251-8898-9FAD23AD3371' Win64="$(var.Win64)">
|
||||
<File Id='Coati' Name='coati.ico' DiskId='1' Source='./../../../bin/app/data/gui/icon/coati.ico' KeyPath='yes' />
|
||||
<Component Id='SourcetrailIco' Guid='9D65B057-EA87-4251-8898-9FAD23AD3371' Win64="$(var.Win64)">
|
||||
<File Id='Sourcetrail' Name='sourcetrail.ico' DiskId='1' Source='./../../../bin/app/data/gui/icon/sourcetrail.ico' KeyPath='yes' />
|
||||
</Component>
|
||||
<Component Id='Cpp_icon_Png' Guid='B9EB2C3F-6256-4F54-9F8C-7DC338424839' Win64="$(var.Win64)">
|
||||
<File Id='Cpp_icon' Name='cpp_icon.png' DiskId='1' Source='./../../../bin/app/data/gui/icon/cpp_icon.png' KeyPath='yes' />
|
||||
|
||||
@@ -1 +1 @@
|
||||
msiexec /i coati.msi REINSTALL=ALL REINSTALLMODE=vomus /l*v installLog.txt
|
||||
msiexec /i sourcetrail.msi REINSTALL=ALL REINSTALLMODE=vomus /l*v installLog.txt
|
||||
@@ -1,12 +1,8 @@
|
||||
===============
|
||||
||Coati Setup||
|
||||
===============
|
||||
=====================
|
||||
||Sourcetrail Setup||
|
||||
=====================
|
||||
|
||||
To install Coati simply run 'Setup.exe'
|
||||
To install Sourcetrail simply run 'Setup.exe'
|
||||
|
||||
If you have a previous version installed, Setup.exe will attempt to upgrade*.
|
||||
If you have a previous version installed, Setup.exe will attempt to upgrade.
|
||||
Your previous application specific settings will be maintained.
|
||||
|
||||
|
||||
|
||||
*Upgrades work for Coati versions newer than 0.9.0
|
||||
|
||||
+19
-19
@@ -1,7 +1,7 @@
|
||||
<?xml version='1.0' encoding='windows-1252'?>
|
||||
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
|
||||
|
||||
<?define ProductName = "Coati" ?>
|
||||
<?define ProductName = "Sourcetrail" ?>
|
||||
<?define ProductAuthor = "Coati Software OG" ?>
|
||||
<?define ProductAppFolder = "InstallLocation" ?>
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
Description="Remove $(var.ProductDisplayName) from your computer"
|
||||
Target="[INSTALLDIR]uninstall.bat" />
|
||||
|
||||
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]\CoatiUninstall" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
|
||||
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]\SourcetrailUninstall" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
|
||||
<RemoveFolder Id='ProgramMenuDir' On='uninstall' />
|
||||
</Component>
|
||||
|
||||
@@ -84,9 +84,9 @@
|
||||
|
||||
Name="$(var.ProductDisplayName)"
|
||||
Description="The Source Explorer"
|
||||
Target="[INSTALLDIR]Coati.exe"
|
||||
Target="[INSTALLDIR]Sourcetrail.exe"
|
||||
WorkingDirectory="INSTALLDIR"/>
|
||||
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]\CoatiShortcut" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
|
||||
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]\SourcetrailShortcut" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
</Directory>
|
||||
</Directory>
|
||||
@@ -98,17 +98,17 @@
|
||||
<Shortcut Id="ApplicationDesktopShortcut"
|
||||
Name="$(var.ProductDisplayName)"
|
||||
Description="Source Explorer"
|
||||
Target="[INSTALLDIR]Coati.exe"
|
||||
Target="[INSTALLDIR]Sourcetrail.exe"
|
||||
WorkingDirectory="INSTALLDIR"/>
|
||||
<RemoveFolder Id="DesktopFolder" On="uninstall"/>
|
||||
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]\CoatiDesktop" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
|
||||
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]\SourcetrailDesktop" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
|
||||
</Component>
|
||||
</Directory>
|
||||
|
||||
<!-- Application Folder -->
|
||||
<Directory Id='$(var.PlatformProgramFilesFolder)' Name='PFiles'>
|
||||
<Directory Id='COMPANYDIR' Name='Coati Software'>
|
||||
<Directory Id='INSTALLDIR' Name='Coati' />
|
||||
<Directory Id='INSTALLDIR' Name='Sourcetrail' />
|
||||
</Directory>
|
||||
</Directory>
|
||||
|
||||
@@ -120,16 +120,16 @@
|
||||
<Component Id="CoatiSoftwareAppDataDummy" Guid="E57CFAEC-B3E7-45EB-8B94-F50EBDA1355C" Win64="$(var.Win64)">
|
||||
<CreateFolder />
|
||||
<RemoveFolder Id='CoatiSoftwareAppData' On='uninstall' />
|
||||
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\coatiSoftwareAppData" Root="HKCU" >
|
||||
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\sourcetrailSoftwareAppData" Root="HKCU" >
|
||||
<RegistryValue Type="integer" Value="1" KeyPath="yes" />
|
||||
</RegistryKey>
|
||||
</Component>
|
||||
|
||||
<Directory Id="CoatiAppData" Name="$(var.ProductDisplayName)">
|
||||
<Component Id="CoatiAppDataDummy" Guid="93024EB9-ED47-4D0D-B790-1028E10F8015" Win64="$(var.Win64)">
|
||||
<Directory Id="SourcetrailAppData" Name="$(var.ProductDisplayName)">
|
||||
<Component Id="SourcetrailAppDataDummy" Guid="93024EB9-ED47-4D0D-B790-1028E10F8015" Win64="$(var.Win64)">
|
||||
<CreateFolder />
|
||||
<RemoveFolder Id='CoatiAppData' On='uninstall' />
|
||||
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\coatiAppData" Root="HKCU" >
|
||||
<RemoveFolder Id='SourcetrailAppData' On='uninstall' />
|
||||
<RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\sourcetrailAppData" Root="HKCU" >
|
||||
<RegistryValue Type="integer" Value="1" KeyPath="yes" />
|
||||
</RegistryKey>
|
||||
</Component>
|
||||
@@ -211,7 +211,7 @@
|
||||
<ComponentRef Id='AboutCss'/>
|
||||
<ComponentRef Id='IconClosePng'/>
|
||||
<ComponentRef Id='LogoAwsPng'/>
|
||||
<ComponentRef Id='LogoCoatiPng'/>
|
||||
<ComponentRef Id='LogoSourcetrailPng'/>
|
||||
<ComponentRef Id='LogoFhsPng'/>
|
||||
|
||||
<ComponentRef Id='BookmarkViewCss'/>
|
||||
@@ -259,7 +259,7 @@
|
||||
|
||||
<ComponentRef Id='C_icon_Png'/>
|
||||
<ComponentRef Id='Cdb_icon_Png'/>
|
||||
<ComponentRef Id='CoatiIco'/>
|
||||
<ComponentRef Id='SourcetrailIco'/>
|
||||
<ComponentRef Id='Cpp_icon_Png'/>
|
||||
<ComponentRef Id='Empty_icon_Png'/>
|
||||
<ComponentRef Id='Java_icon_Png'/>
|
||||
@@ -328,7 +328,7 @@
|
||||
|
||||
<!-- AppData Folder Stuff -->
|
||||
<ComponentRef Id='CoatiSoftwareAppDataDummy'/>
|
||||
<ComponentRef Id='CoatiAppDataDummy'/>
|
||||
<ComponentRef Id='SourcetrailAppDataDummy'/>
|
||||
|
||||
<!-- </Feature> -->
|
||||
|
||||
@@ -336,13 +336,13 @@
|
||||
<!-- <Feature Id='SampleCode' Title='Samples' Description='Tutorial and Sample Project' Level='1000'> -->
|
||||
<ComponentRef Id='SampleProjects'/>
|
||||
|
||||
<ComponentRef Id='TictactoeCoatiproject'/>
|
||||
<ComponentRef Id='TictactoeSourcetrailproject'/>
|
||||
<ComponentRef Id='TictactoeCode'/>
|
||||
|
||||
<ComponentRef Id='TutorialCoatiproject'/>
|
||||
<ComponentRef Id='TutorialSourcetrailproject'/>
|
||||
<ComponentRef Id='TutorialCode'/>
|
||||
|
||||
<ComponentRef Id='JavaparserCoatiproject'/>
|
||||
<ComponentRef Id='JavaparserSourcetrailproject'/>
|
||||
<ComponentRef Id='SampleProjectJavaparserSrcFolder'/>
|
||||
<ComponentRef Id='SampleProjectJavaparserSrcMainFolder'/>
|
||||
<ComponentRef Id='SampleProjectJavaparserSrcMainJavaFolder'/>
|
||||
@@ -393,7 +393,7 @@
|
||||
|
||||
<UIRef Id="WixUI_ErrorProgressText" />
|
||||
|
||||
<Icon Id="Coati.ico" SourceFile="./../../../bin/app/data/gui/icon/coati.ico" />
|
||||
<Icon Id="Sourcetrail.ico" SourceFile="./../../../bin/app/data/gui/icon/sourcetrail.ico" />
|
||||
<Icon Id="Project.ico" SourceFile="./../../../bin/app/data/gui/icon/project.ico" />
|
||||
|
||||
<WixVariable Id="WixUILicenseRtf" Value="./../../../bin/app/data/gui/installer/EULA.rtf" />
|
||||
@@ -9,13 +9,13 @@ Build the installer
|
||||
- http://wixtoolset.org/releases/
|
||||
-I used stable version 3.10.3 for development
|
||||
-make sure the WiX directory is in you OS path variable ('..\WiX Toolset v3.10\bin')
|
||||
-Coati has to be built with the 'deploy' flag
|
||||
-installer would still build if the deploy flag wasnt set, but the Coati wont run properly on a user machine
|
||||
-Sourcetrail has to be built with the 'deploy' flag
|
||||
-installer would still build if the deploy flag wasnt set, but the Sourcetrail wont run properly on a user machine
|
||||
|
||||
-Execute build.bat
|
||||
-This will build coati.msi file, all needed custom action dlls and the setup.exe file
|
||||
-setup.exe and coati.msi are needed to install
|
||||
-setup.exe checks whether coati is installed and will either start the initial installation or the upgrade installation
|
||||
-This will build sourcetrail.msi file, all needed custom action dlls and the setup.exe file
|
||||
-setup.exe and sourcetrail.msi are needed to install
|
||||
-setup.exe checks whether sourcetrail is installed and will either start the initial installation or the upgrade installation
|
||||
|
||||
|
||||
---------------------
|
||||
@@ -65,16 +65,16 @@ Add new file to the installation directory (installDir.wxs)
|
||||
|
||||
|
||||
Add new file to the user folder (appDataDir.wxs)
|
||||
-files that will be changed by coati or the user should be put here
|
||||
-files that will be changed by sourcetrail or the user should be put here
|
||||
-needs a RegistryKey element within the component element to provide the KeyPath
|
||||
- <RegistryKey Action="none" Key="Software\[Manufacturer]\[ProductName]\>yourKeyNameHere<" Root="HKCU" >
|
||||
<RegistryValue Type="integer" Value="1" KeyPath="yes" />
|
||||
</RegistryKey>
|
||||
|
||||
|
||||
Not quite done yet! (coati.wxs)
|
||||
Not quite done yet! (sourcetrail.wxs)
|
||||
-components need to be added to a feature (a feature is part of a software, consisting of components, that may or may not be installed during setup)
|
||||
-right now we only have the Complete/Program feature, so no part of coati is optional right now
|
||||
-right now we only have the Complete/Program feature, so no part of sourcetrail is optional right now
|
||||
-to add a component to a feature use the <ComponentRef> tag
|
||||
-Id: id of the component you want to refere to
|
||||
|
||||
@@ -89,14 +89,14 @@ Version Number
|
||||
-candle.exe -dprojectVersion="0.7.0" ...
|
||||
-replace 0.7.0 with the desired version number
|
||||
|
||||
Minor upgrage (coati.wxs)
|
||||
Minor upgrage (sourcetrail.wxs)
|
||||
-for when only a few files are to be updated
|
||||
-update the version number in build.bat script
|
||||
-do NOT change the product GUID
|
||||
-the package GUID has to change, that happens automatically though so don't worry 'bout it
|
||||
|
||||
|
||||
Major upgrade (coati.wxs)
|
||||
Major upgrade (sourcetrail.wxs)
|
||||
-for big changes, like a new major version
|
||||
-update the version number in build.bat script
|
||||
-DO change the product GUID
|
||||
|
||||
Reference in New Issue
Block a user