Here is the XML:
<?xml version="1.0" encoding="UTF-8"?>
<?ifndef var.goth_product_root?>
<?error goth_product_root must be defined ?>
<?endif?>
<?ifndef var.product_name ?>
<?define product_name = "1Spatial Data Access Manager" ?>
<?endif?>
<?ifdef var.product_version?>
<?define _titleName = "$(var.product_name) $(var.product_version)" ?>
<?else?>
<?define _titleName = $(var.product_name) ?>
<?endif?>
<?ifndef var.verbose?>
<?define verbose = "no" ?>
<?elseif var.verbose != "yes" and var.verbose != "no" ?>
<?error verbose argument must be "yes" or "no" ?>
<?endif?>
<?ifndef goth_dataroot?>
<?define goth_dataroot = "$(env.SystemDrive)\1Spatial\data"?>
<?elseif $(var.goth_dataroot) = ""?>
<?define goth_dataroot = "$(env.SystemDrive)\1Spatial\data"?>
<?endif?>
<?ifndef goth_dam_root?>
<?define goth_dam_root = "$(var.goth_dataroot)\dam"?>
<?elseif $(var.goth_dam_root) = ""?>
<?define goth_dam_root = "$(var.goth_dataroot)\dam"?>
<?endif?>
<?ifndef goth_lic?>
<?define goth_lic = "$(var.goth_dataroot)\lic\"?>
<?elseif $(var.goth_lic) = ""?>
<?define goth_lic = "$(var.goth_dataroot)\lic\"?>
<?endif?>
<?if var.goth_installation = ""?>
<?undef goth_installation ?>
<?endif?>
<?ifndef var.outputDir ?>
<?ifdef env.SystemRoot ?>
<?define outputDir = "$(env.SystemRoot)\Temp" ?>
<?else?>
<?define outputDir = $(var.goth_product_root)?>
<?endif?>
<?endif?>
<?define dam_stderr = "$(var.outputDir)\dam_stderr" ?>
<?define dam_stdin = "nul" ?>
<?define dam_stdout = "$(var.outputDir)\dam_stdout" ?>
<?define damInstallRegKey = "SOFTWARE\1Spatial\Data Access Manager" ?>
<?define damEnvRegKey =
"SYSTEM\CurrentControlSet\Services\dam\Environment" ?>
<?include issue.wxi ?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="9b0dc3b9-58f0-434a-a47e-5df1932faa8a"
Name="$(var._titleName)"
Language="1033"
Version="1.0.0.0"
Manufacturer="1Spatial"
UpgradeCode="9bb243f5-776d-4905-993a-a68fd574364b">
<Package InstallerVersion="200" Compressed="yes" />
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
<Property Id="INSTALLDIR">
<RegistrySearch Id="RS_InstallDir"
Root="HKLM"
Key="$(var.damInstallRegKey)"
Name="InstallDir"
Type="raw" />
</Property>
<Property Id="GOTH_DATAROOT"
Value="$(var.goth_dataroot)">
<RegistrySearch Id="RS_goth_dataroot"
Root="HKLM"
Key="$(var.damEnvRegKey)"
Name="goth_dataroot"
Type="raw" />
</Property>
<Property Id="GOTH_DAM"
Value="$(var.goth_dam_root)">
<RegistrySearch Id="RS_goth_dam"
Root="HKLM"
Key="$(var.damEnvRegKey)"
Name="goth_dam_root_path"
Type="raw" />
</Property>
<Property Id="GOTH_LIC"
Value="$(var.goth_lic)">
<RegistrySearch Id="RS_goth_lic"
Root="HKLM"
Key="$(var.damEnvRegKey)"
Name="goth_lic"
Type="raw" />
</Property>
<?ifdef var.goth_installation?>
<Property Id="GOTH_INSTALLATION"
Value="$(var.goth_installation)">
<RegistrySearch Id="RS_goth_installation"
Root="HKLM"
Key="$(var.damEnvRegKey)"
Name="goth_installation"
Type="raw" />
</Property>
<?else?>
<Property Id="GOTH_INSTALLATION">
<RegistrySearch Id="RS_goth_installation"
Root="HKLM"
Key="$(var.damEnvRegKey)"
Name="goth_installation"
Type="raw" />
</Property>
<?endif?>
<Property Id="DAMSTDERR"
Value="$(var.dam_stderr)">
<RegistrySearch Id="RS_DamStderr"
Root="HKLM"
Key="$(var.damEnvRegKey)"
Name="stderr"
Type="raw" />
</Property>
<Property Id="DAMSTDIN"
Value="$(var.dam_stdin)">
<RegistrySearch Id="RS_DamStdin"
Root="HKLM"
Key="$(var.damEnvRegKey)"
Name="stdin"
Type="raw" />
</Property>
<Property Id="DAMSTDOUT"
Value="$(var.dam_stdout)">
<RegistrySearch Id="RS_DamStdout"
Root="HKLM"
Key="$(var.damEnvRegKey)"
Name="stdout"
Type="raw" />
</Property>
<Property Id="VERBOSE"
Value="$(var.verbose)">
<RegistrySearch Id="RS_Verbose"
Root="HKLM"
Key="$(var.damEnvRegKey)"
Name="verbose"
Type="raw" />
</Property>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="OneSpatial" Name ="1Spatial">
<Directory Id="INSTALLDIR" Name="dam">
<Directory Id="ComDir" Name="com" />
<Directory Id="ConfigDir" Name="config" />
<Directory Id="ExeDir" Name="exe" />
</Directory>
</Directory>
</Directory>
<Directory Id="AppDataFolder">
<Directory Id="OneSpatialAppData" Name="1Spatial">
<Directory Id="GOTH_DATAROOT" Name="data">
<Directory Id="GOTH_DAM" Name="dam">
<Component Id="C_DamEnvRegistryEntries_Goth_Dam"
Guid="{4B4E8CDB-9E8D-4536-9168-8F4EF085ABDB}"
Permanent="yes">
<CreateFolder />
<RegistryKey Root="HKLM"
Key="$(var.damEnvRegKey)"
Action="create">
<RegistryValue Type="string"
Name="goth_dam_root_path"
Value="[GOTH_DAM]"
KeyPath="yes"/>
<RegistryValue Type="string"
Name="goth_dam_root"
Value="null:[GOTH_DAM]"
KeyPath="no"/>
</RegistryKey>
</Component>
<Directory Id="GOTH_DAM_LOG" Name="log">
<Component Id="C_DamReqDirectories_Goth_Dam_Log"
Guid="{418e423d-f0b0-4b92-9980-f92697bf8a6f}"
Permanent="yes">
<CreateFolder />
</Component>
</Directory>
</Directory>
<Directory Id="GOTH_LIC" Name="lic">
<Component Id="C_DamEnvRegistryEntries_Goth_Lic"
Guid="{41F18ADE-C0B5-4911-85F3-096C24EED751}"
Permanent="yes">
<CreateFolder />
<RegistryKey Root="HKLM"
Key="$(var.damEnvRegKey)"
Action="create">
<RegistryValue Type="string"
Name="goth_lic"
Value="[GOTH_LIC]"
KeyPath="yes"/>
<RegistryValue Type="string"
Name="goth_installation"
Value="[GOTH_INSTALLATION]"
KeyPath="no"/>
</RegistryKey>
</Component>
</Directory>
<Directory Id="GOTH_OBDB_SORT" Name="sort">
<Component Id="C_DamReqDirectories_Goth_Obdb_Sort"
Guid="{48826808-979c-4c47-9a67-988ce169a31e}"
Permanent="yes">
<CreateFolder />
</Component>
</Directory>
<Directory Id="GOTH_OBDB_ROOT" Name="obdb">
<Component Id="C_DamReqDirectories_Goth_Obdb_Root"
Guid="{ebe93956-197d-4c20-b570-7984be6e0c21}"
Permanent="yes">
<CreateFolder />
</Component>
<Directory Id="GOTH_OBDB_CONFIG" Name="config">
<Component Id="C_DamReqDirectories_Goth_Obdb_Config"
Guid="{f191bfcf-5412-4e0f-9eeb-457d5badd551}"
Permanent="yes">
<CreateFolder />
</Component>
</Directory>
<Directory Id="GOTH_OBDB_DEFAULT" Name="default">
<Component Id="C_DamReqDirectories_Goth_Obdb_Default"
Guid="{21fd4a80-e33f-4a66-9f6f-57a9520607e1}"
Permanent="yes">
<CreateFolder />
</Component>
</Directory>
<Directory Id="GOTH_OBDB_HISTORY" Name="history">
<Component Id="C_DamReqDirectories_Goth_Obdb_History"
Guid="{cd6a88f8-b4fe-4d28-a0ff-c8e69d5de0f5}"
Permanent="yes">
<CreateFolder />
</Component>
</Directory>
<Directory Id="GOTH_OBDB_LOCK" Name="lock">
<Component Id="C_DamReqDirectories_Goth_Obdb_Lock"
Guid="{9701e386-6e66-4c73-a4e6-405aa5e2da1d}"
Permanent="yes">
<CreateFolder />
</Component>
</Directory>
<Directory Id="GOTH_OBDB_OBJIDX" Name="objidx">
<Component Id="C_DamReqDirectories_Goth_Obdb_Objidx"
Guid="{460d810e-0ab1-470a-8cd7-93882fc03239}"
Permanent="yes">
<CreateFolder />
</Component>
</Directory>
<Directory Id="GOTH_OBDB_OBJECT" Name="reg">
<Component Id="C_DamReqDirectories_Goth_Obdb_Reg"
Guid="{1b5f0479-915c-415e-a5f2-efe255f6a17c}"
Permanent="yes">
<CreateFolder />
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
</Directory>
</Directory>
<DirectoryRef Id="ComDir">
<Component Id="C_dam"
Guid="{A2A6E466-8968-4fdb-8D86-F32D29F25884}">
<File Id="dam.exe"
Name="dam.exe"
Source="$(var.goth_product_root)\com\dam.exe"
KeyPath="yes"
Checksum="yes" />
<?ifdef var.sentinel_installation?>
<File Id="lsapiw32.dll"
Name="lsapiw32.dll"
Source="$(var.goth_product_root)\com\lsapiw32.dll"
KeyPath="no"
Checksum="yes" />
<?endif?>
<ServiceInstall Id="DamService"
Type="ownProcess"
Vital="no"
Name="dam"
DisplayName="1Spatial Data Access Manager"
Description="Database access manager service for
1Spatial applications"
Start="auto"
ErrorControl="normal"
Interactive="no" />
<ServiceControl Id="DamServiceControl"
Name="dam"
Start="install"
Stop="uninstall"
Remove="uninstall"
Wait="yes" />
</Component>
<?ifdef var.sentinel_installation?>
<Component Id="C_echoid"
Guid="{CFF26313-1267-4309-A0A2-363B4D533D66}">
<File Id="echoid.exe"
Name="echoid.exe"
Source="$(var.goth_product_root)\com\echoid.exe"
KeyPath="yes"
Checksum="yes" />
<File Id="echoid.dat"
Name="echoid.dat"
Source="$(var.goth_product_root)\com\echoid.dat"
KeyPath="no"
Checksum="no" />
</Component>
<Component Id="C_lslic"
Guid="{924034B8-4079-4f50-BD09-EBB878A270BA}">
<File Id="lslic.exe"
Name="lslic.exe"
Source="$(var.goth_product_root)\com\lslic.exe"
KeyPath="yes"
Checksum="yes" />
</Component>
<Component Id="C_lsmon"
Guid="{20A6E1B6-8FDB-41b3-8012-2CEBFDB187B5}">
<File Id="lsmon.exe"
Name="lsmon.exe"
Source="$(var.goth_product_root)\com\lsmon.exe"
KeyPath="yes"
Checksum="yes" />
</Component>
<?endif?>
</DirectoryRef>
<DirectoryRef Id="ExeDir">
<Component Id="C_NONE_product_ident"
Guid="{A379A7CD-62DF-49a8-8BE5-10899849C938}">
<File Id="NONE_product_ident"
Name="NONE_product_ident"
Source="$(var.goth_product_root)\exe\NONE_product_ident"
KeyPath="yes"
Checksum="no" />
</Component>
</DirectoryRef>
<DirectoryRef Id="INSTALLDIR">
<Component Id="C_issue000.log"
Guid="{01BC42DA-E7B4-42d9-BC00-E118FF1CCC66}">
<File Id="issue000.log"
Name="issue000.log"
Source="$(var.goth_product_root)\issue000.log"
KeyPath="yes"
Checksum="no" />
</Component>
<Component Id="C_product_status"
Guid="{44055D53-50C5-4e37-A38A-F94F150C88D3}">
<File Id="product_status"
Name="product_status"
Source="$(var.goth_product_root)\product_status"
KeyPath="yes"
Checksum="no" />
</Component>
</DirectoryRef>
<DirectoryRef Id="TARGETDIR">
<Component Id="C_DamInstallRegistryEntries"
Guid="{8BC090D5-1180-4155-A389-8E5E0F220DBD}">
<RegistryKey Root="HKLM"
Key="$(var.damInstallRegKey)"
Action="create">
<RegistryValue Type="string"
Name="InstallDir"
Value="[INSTALLDIR]"
KeyPath="yes"/>
</RegistryKey>
</Component>
<Component Id="C_DamEnvRegistryEntries_Miscellaneous"
Guid="{74B9C0F0-567E-411e-8840-A644B897005F}"
Permanent="yes">
<RegistryKey Root="HKLM"
Key="$(var.damEnvRegKey)"
Action="create">
<RegistryValue Type="string"
Name="goth_dataroot"
Value="[GOTH_DATAROOT]"
KeyPath="yes"/>
<RegistryValue Type="string"
Name="stderr"
Value="[DAMSTDERR]"
KeyPath="no"/>
<RegistryValue Type="string"
Name="stdin"
Value="[DAMSTDIN]"
KeyPath="no"/>
<RegistryValue Type="string"
Name="stdout"
Value="[DAMSTDOUT]"
KeyPath="no"/>
<RegistryValue Type="string"
Name="verbose"
Value="[VERBOSE]"
KeyPath="no"/>
</RegistryKey>
</Component>
</DirectoryRef>
<Feature Id="DataAccessManagerApplication"
Title="Data Access Manager"
Level="1"
ConfigurableDirectory="INSTALLDIR">
<ComponentRef Id="C_dam" />
<?ifdef var.sentinel_installation?>
<ComponentRef Id="C_echoid" />
<ComponentRef Id="C_lslic" />
<ComponentRef Id="C_lsmon" />
<?endif?>
<ComponentRef Id="C_NONE_product_ident" />
<ComponentRef Id="C_issue000.log" />
<ComponentRef Id="C_product_status" />
<ComponentRef Id="C_DamInstallRegistryEntries"/>
<ComponentRef Id="C_DamEnvRegistryEntries_Miscellaneous"/>
<ComponentRef Id="C_DamEnvRegistryEntries_Goth_Dam"/>
<ComponentRef Id="C_DamEnvRegistryEntries_Goth_Lic"/>
<ComponentRef Id="C_DamReqDirectories_Goth_Dam_Log"/>
<ComponentRef Id="C_DamReqDirectories_Goth_Obdb_Sort"/>
<ComponentRef Id="C_DamReqDirectories_Goth_Obdb_Root"/>
<ComponentRef Id="C_DamReqDirectories_Goth_Obdb_Config"/>
<ComponentRef Id="C_DamReqDirectories_Goth_Obdb_Default"/>
<ComponentRef Id="C_DamReqDirectories_Goth_Obdb_History"/>
<ComponentRef Id="C_DamReqDirectories_Goth_Obdb_Lock"/>
<ComponentRef Id="C_DamReqDirectories_Goth_Obdb_Objidx"/>
<ComponentRef Id="C_DamReqDirectories_Goth_Obdb_Reg"/>
</Feature>
<CustomAction Id="PostInstallationCustomization"
BinaryKey="Customization.vbs"
Return="ignore"
VBScriptCall='AddGothDamSockEntryToServicesFile' />
<Binary Id="Customization.vbs"
SourceFile="$(var.goth_product_root)\config\Customization.vbs"
/>
<?ifdef var.sentinel_installation?>
<CustomAction Id="SentinelCustomization"
BinaryKey="sentinel.vbs"
Return="ignore"
VBScriptCall='SetSentinelSystemVariables' />
<Binary Id="sentinel.vbs"
SourceFile="$(var.goth_product_root)\config\sentinel.vbs" />
<?endif?>
<InstallExecuteSequence>
<Custom Action="PostInstallationCustomization"
After='InstallFinalize'>
Not Installed
</Custom>
<?ifdef var.sentinel_installation?>
<Custom Action="SentinelCustomization"
After='PostInstallationCustomization'>
Not Installed
</Custom>
<?endif?>
</InstallExecuteSequence>
<UIRef Id="WixUI_Common" />
<WixVariable Id="WixUIBannerBmp"
Value="$(var.goth_product_root)\config\WixTopPanelBanner.bmp" />
<WixVariable Id="WixUIDialogBmp"
Value="$(var.goth_product_root)\config\WixWelcomeInstallBackdrop.bmp" />
<WixVariable Id="WixUILicenseRtf"
Value="$(var.goth_product_root)\config\licence.rtf" />
<UI>
<TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
<TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
<TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9"
Bold="yes" />
<Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
<Property Id="ALLUSERS" Value="1" />
<?include GothDatarootDialog.wxi?>
<?include GothLicenceDialog.wxi?>
<?define directoryDlgPropertyName = "GOTH_DAM"?>
<?define directoryDlgId = "GothDamDlg"?>
<?define directoryDlgTitle = "[ProductName] Database Location"?>
<?define directoryDlgDescriptionHeader = "Database Folder"?>
<?define directoryDlgDescription = "Click Next to use the default
folder to click Change to choose another"?>
<?define directoryDlgEditLabel = "Database Location:"?>
<?include DirectoryDialog.wxi?>
<?undef directoryDlgPropertyName?>
<?undef directoryDlgId?>
<?undef directoryDlgTitle?>
<?undef directoryDlgDescriptionHeader?>
<?undef directoryDlgDescription?>
<?undef directoryDlgEditLabel?>
<DialogRef Id="BrowseDlg" />
<DialogRef Id="DiskCostDlg" />
<DialogRef Id="ErrorDlg" />
<DialogRef Id="FatalError" />
<DialogRef Id="FilesInUse" />
<DialogRef Id="MsiRMFilesInUse" />
<DialogRef Id="PrepareDlg" />
<DialogRef Id="ProgressDlg" />
<DialogRef Id="ResumeDlg" />
<DialogRef Id="UserExit" />
<Publish Dialog="ExitDialog"
Control="Finish"
Event="EndDialog"
Value="Return"
Order="999">1</Publish>
<Publish Dialog="WelcomeDlg"
Control="Next"
Event="NewDialog"
Value="LicenseAgreementDlg">1</Publish>
<Publish Dialog="LicenseAgreementDlg"
Control="Back"
Event="NewDialog"
Value="WelcomeDlg">1</Publish>
<Publish Dialog="LicenseAgreementDlg"
Control="Next"
Event="NewDialog"
Value="InstallDirDlg">LicenseAccepted = "1"</Publish>
<Publish Dialog="InstallDirDlg"
Control="Back"
Event="NewDialog"
Value="LicenseAgreementDlg">1</Publish>
<Publish Dialog="InstallDirDlg"
Control="Next"
Event="SetTargetPath"
Value="[WIXUI_INSTALLDIR]"
Order="1">1</Publish>
<Publish Dialog="InstallDirDlg"
Control="Next"
Event="DoAction"
Value="WixUIValidatePath"
Order="2">1</Publish>
<Publish Dialog="InstallDirDlg"
Control="Next"
Event="SpawnDialog"
Value="InvalidDirDlg"
Order="3"></Publish>
<Publish Dialog="InstallDirDlg"
Control="Next"
Event="NewDialog"
Value="GothDatarootDlg"
Order="4"></Publish>
<Publish Dialog="InstallDirDlg"
Control="ChangeFolder"
Property="_BrowseProperty"
Value="[WIXUI_INSTALLDIR]"
Order="1">1</Publish>
<Publish Dialog="InstallDirDlg"
Control="ChangeFolder"
Event="SpawnDialog"
Value="BrowseDlg"
Order="2">1</Publish>
<Publish Dialog="GothDatarootDlg"
Control="Back"
Event="NewDialog"
Value="InstallDirDlg">1</Publish>
<Publish Dialog="GothDatarootDlg"
Control="Next"
Event="NewDialog"
Value="GothDamDlg">1</Publish>
<Publish Dialog="GothDamDlg"
Control="Back"
Event="NewDialog"
Value="GothDatarootDlg">1</Publish>
<Publish Dialog="GothDamDlg"
Control="Next"
Event="NewDialog"
Value="GothLicenceDlg">1</Publish>
<Publish Dialog="GothLicenceDlg"
Control="Back"
Event="NewDialog"
Value="GothDamDlg">1</Publish>
<Publish Dialog="GothLicenceDlg"
Control="Next"
Event="NewDialog"
Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="VerifyReadyDlg"
Control="Back"
Event="NewDialog"
Value="GothLicenceDlg"
Order="1">NOT Installed</Publish>
<Publish Dialog="VerifyReadyDlg"
Control="Back"
Event="NewDialog"
Value="MaintenanceTypeDlg"
Order="2">Installed</Publish>
<Publish Dialog="MaintenanceWelcomeDlg"
Control="Next"
Event="NewDialog"
Value="MaintenanceTypeDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg"
Control="RepairButton"
Event="NewDialog"
Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg"
Control="RemoveButton"
Event="NewDialog"
Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg"
Control="Back"
Event="NewDialog"
Value="MaintenanceWelcomeDlg">1</Publish>
</UI>
</Product>
</Wix>
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CreateFolder-does-not-create-required-directory-structure-tp7043173p7043175.html
Sent from the wix-devs mailing list archive at Nabble.com.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs