1. Validation isn't possible because the WorkingDirectory attribute is a 
reference to a Property identifier (during CostFinalize all Directory Id's 
become accessible as Properties).  Thus, you could have a custom action that 
sets INSTALLDIR that the WiX toolset cannot see and would be a false positive.

2. WixCop is like StyleCop. It fixes source code to match an "ideal" spacing, 
indentation, order, etc. (whether you agree with the ideal or not is a 
different thing <smile/>).  WixCop also can migrate old code (v2) to new code 
(v3.x).

-----Original Message-----
From: keith.doug...@statcan.gc.ca [mailto:keith.doug...@statcan.gc.ca] 
Sent: Thursday, December 5, 2013 6:11 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Question about shortcuts

Several of our packages use unadvertised shortcuts to point to various files in 
their installation. However, I have learned that we were setting the 
"WorkingDirectory" attribute wrong for them (because I had to replace one for 
an application where WorkingDirectory matters). I had followed the how-to in 
the documentation and failed to realize that INSTALLDIR was a user-defined 
constant, not a Windows Installer or WIX constant; I had consequently never 
actually defined it anywhere. Should there be a validation of this attribute? I 
now find it funny that an undefined ID will work here. It seems to simply put 
in the empty string, which is harmless, but ... I see WixCop does this when it 
is run. I guess I wonder why there, not in (say) light?

Also, is there any particular reason why the attribute is called 
WorkingDirectory and the UI in Explorer uses "Start In"? One of my colleagues 
wondered about that.


Keith Douglas
Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 
Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6 
keith.doug...@statcan.gc.ca Telephone | Téléphone 613-951-4405 Facsimile | 
Télécopieur 613-951-1966 Government of Canada | Gouvernement du Canada 



------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to