installation - Wix - Keeping track of installed applications -
this seems straightforward question i've been unable find answer:
let's have 2 products: , b created mycompany. both products , b have shortcuts in start menu in fashion:
mycompanyfolder->product_a_folder->a.exe , mycompanyfolder->product_b_folder->b.exe
if uninstall "product b" don't want delete "mycompanyfolder" unless last product left. check see if "product a" exists or not (through component or registry search) impossible me know @ time how many future applications added folder.
the solution came create registry key contains integer denoting number of apps installed - seems bit inelegant (not mention don't know how increment registry values in wix either).
any thoughts? thanks.
you must doing unusual in install because should work automatically. shouldn't need have components or createfolder elements start menu directory. create reference below , use applicationprogramsfolder id in shortcut element across installs , msi automatically handle case of last 1 off removes folder.
<directory id="targetdir" name="sourcedir"> <directory id="programmenufolder"> <directory id="companyprogramsfolder" name="iswix, llc"> <directory id="applicationprogramsfolder" name="iswix" /> </directory> </directory> </directory>
Comments
Post a Comment