Hi all -
I am having some trouble using a system property. My current goal is to
make a backup copy of some *.cmd files in the System32 directory because
on installation I will be overwriting them (and then on uninstall I will
be restoring the backups, but I am not there yet).
My current problem is that I get a "Error 1314. The specified path
'[SystemFolder]' is unavailable" error when I run the MSI.
I am just trying to use the CopyFile element to copy the file
usrlogon.cmd to my install dir. Some questions:
1. It seems I can refer to a system property such as ProgramFilesFolder
in an Id without enclosing it in braces. How is this the case?
2. When I run the msi that the following XML creates, I get "Error 1314.
The specified path '[SystemFolder]' is unavailable" in the log. Is the
property getting defined at a time when I cannot refer to system
properties?
3. When and where can I refer to things like ProgramFilesFolder and
SystemFolder? When should I enclose in braces and when should I not?
4. You can see below that I attempted to define a property with a value
of [SystemFolder]. That didn't work. However, neither did putting
SystemFolder or [SystemFolder] in any of the places that I wanted that
value (such as SourceDirectory in the CopyFile element). Why is this?
<?xml blah><Wix blah><Product blah><Package blah /><Media blah />
<Property Id='DiskPrompt' blah />
<Property Id="SysFolder" Value ='[SystemFolder]' />
<Directory Id='ProgramFilesFolder' Name='PFiles'>
<Directory Id='MinuteClinic' Name='MCDir' LongName='MinuteClinic
Folder Long Name'>
<Directory Id='INSTALLDIR' Name='SLDir' LongName='Server Logon
Folder Long Name'>
<Component Id='BackupCmds'
Guid='A004C7F0-0585-4728-9F3C-C2C402549D7A'>
<CopyFile Id="CopyUsr" Delete="no"
SourceProperty='SysFolder'
SourceName="usrlogon.cmd"
DestinationDirectory="INSTALLDIR"
DestinationName="usrlogon.bak" DestinationLongName="usrlogon.cmd.bak"/>
</Component></Directory></Directory></Directory>
<Feature Id='Complete' Level='1'>
<ComponentRef Id='BackupCmds' />
</Feature> </Product></Wix>
Many thanks to all who respond!
Josh Pepper
Software Developer
MinuteClinic
This electronic mail message and attachments contain
information which may be (a) LEGALLY PRIVILEGED,
CONFIDENTIAL AND PROPRIETARY IN NATURE, OR
OTHERWISE PROTECTED BY LAW FROM DISCLOSURE,
and is (b) intended only for the use of the Addressee(s)
named herein. If you are not the Addressee(s), or the person
responsible for delivering this message to the Addressee(s),
you are hereby notified that reading, copying, or distributing
this message is prohibited. If you have received this
electronic mail message in error, please contact us
immediately (by reply e-mail) to inform us of the error and
take the steps necessary to delete the message completely
from your computer system and any related data. Thank you.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users