WiX: How to override “C:\Program Files (x86)” on x64 machine in WixUI_Advanced sequence?

前端 未结 3 1537
独厮守ぢ
独厮守ぢ 2021-02-04 07:05

I\'m using WixUI_Advanced sequence to allow users pick per-machine or per-user installation and change destination folder. My WiX project is i

3条回答
  •  广开言路
    2021-02-04 07:53

    Something like this would probably do the trick:

    
    
    
    
        
    
    
    
    
    
        
    
    
        
    
    
    
    

    UPDATE: SetDirectory schedules the action prior to WixSetDefaultPerMachineFolder - code updated for manually scheduled elements to schedule between WixSetDefaultPerMachineFolder and WixSetPerMachineFolder. Tested OK with OP sample code under Win7 x64

    UPDATE2: Added action to set ARPINSTALLOCATION as http://robmensching.com/blog/posts/2011/1/14/ARPINSTALLLOCATION-and-how-to-set-it-with-the-WiX-toolset

提交回复
热议问题