WiX CopyFile/Directory Path Unavailable During Patch -


i have wix installer (say @ 10.0) copies files. file copy works fine. trying create patch version. whenever patch (10.1) run, , previous 10.0 install had copy of these files, receive following area while running repair:

"the specified path [path] unavailable."

i have checked, , specified path available. files copied there. further, source data directory files copied in 10.0 install there. there other directories other files copied. not sure if have error, , have not seen yet.

what going wrong?

here .wxs code, same in both original install , patch:

<directoryref id="saveddbfolder">   <component id="saveddbvdirectory" guid="xxx">     <createfolder>       <permission user ="[wix_account_administrators]" genericall="yes"/>       <permission user ="[wix_account_users]" genericall="yes"/>     </createfolder>   </component> </directoryref>  <customaction id="setolddbvwfiles"               property="olddbvwfiles"               value="[pathtooldver]saved db files"/> <directoryref id="saveddbfolder">   <component id="copyolddatabvfiles" guid="yyy">     <copyfile id="copyolddbvwfiles"               delete="yes"               sourceproperty="olddbvwfiles" destinationproperty="saveddbfolder" sourcename="*"/>     <condition>       <![cdata[(not installed) , (not remove) , (previousversion << "8." or previousversion << "7.")]]>     </condition>   </component> </directoryref>          <!--this custom action runs in 10.0 install--> <!--previoushyversion set 10.0; not 10.1--> <customaction id="setolddbvwfileshy"               property="oldhydbvwfiles"               value="[pathtooldad]saved db files"/> <directoryref id="saveddbfolder">   <component id="copyoldhydatabusviewerfiles" guid="zzz">     <copyfile id="copyoldhydbvwfiles"               delete="yes"               sourceproperty="oldhydbvwfiles" destinationproperty="saveddbfolder" sourcename="*"/>     <condition>       <![cdata[(not installed) , (not remove) , (previoushyversion << "4.")]]>     </condition>   </component> </directoryref> 

ok, figured 1 out. log files (msiexec /l*v "[log file]"), discovered 1 of path variables -- "pathtooldad," , no, it's not path dad's tools -- not set in patch. shouldn't have mattered, property used in initial install , not @ in patch, had set something. added option "pathtooldad=[whatever]" call msiexec set property, , voila, worked.

msiexec /i [msp patch file] pathtooldad=[path of old program removed]


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -