Well, looks I'm not quite done yet.

After I use my dialog to change shortcut location folder, the shortcuts, and
folder are not removed on uninstall.
It's like installer does not know that shortcuts are in a different folder
now.

        <Directory Id="ProgramMenuFolder" Name="Programs">
            <Directory Id="PROGRAMMENUVENDOR" Name="$(var.Vendor)">             
              <Directory Id="ProgramMenuDir" Name="!(loc.ProductName)">         
       
                  <Component Id="RemoveShortcutFolders"
Guid="{B1055156-B6FF-4cc0-A289-9F9D40746A4A}" >                     
                    <RemoveFolder Id="ProgramMenuExeDir"
Directory="ProgramMenuDir" On="uninstall" />                                  
                    <RemoveFolder Id="ProgramMenuVendor"
Directory="PROGRAMMENUVENDOR" On="uninstall" />
                    <RegistryKey Id='ProgramMenuRegistry' Root='HKCU'
Key='Software\$(var.Vendor)\$(var.ProductName)'
Action='createAndRemoveOnUninstall'/>
                </Component>
              </Directory>
            </Directory>                      
          </Directory>

      <Component Id="main_exe" Guid="....." DiskId="13">
        <File Id="main_exe" Name="main.exe" Source="C:\main.exe"
KeyPath="yes" Compressed="yes">
          <Shortcut Id="MainExecutableStartupShortcut"
Directory="ProgramMenuDir" Name="!(loc.ProductName)"
WorkingDirectory="INSTALLLOCATION" Icon="main.exe" IconIndex="0"
Advertise="yes" />
          <Shortcut Id="MainExecutableDesktop" Directory="DesktopFolder"
Name="!(loc.ProductName)"  WorkingDirectory="INSTALLLOCATION"
Icon="main.exe" IconIndex="0" Advertise="yes" />
        </File>
      </Component>


In my location selection dialog I'm changing PROGRAMMENUVENDOR folder. It
all works fine and shortcuts are installed in the right location, but not
uninstalled.

Do I need to define ProgramMenuDir as a public property: PROGRAMMENUDIR?

Igor



Rob Mensching-2 wrote:
> 
> If WiX doesn't provide it today it is because nobody has contributed it. 
> Remember, the WiX toolset is a volunteer community project.  Everything
> you see here was built because someone thought it would be
> cool/fun/useful.
> 
> Note, I wouldn't be complaining here if you asked, "Why hasn't anyone
> contributed something like this?  It seems like a bunch of you have
> already solved this problem and I would love to build on your work instead
> of starting over from scratch."
> 
> I can give you two reasons why *I* haven't contributed it.  1.  I've never
> needed it.  2.  I've been busy fixing other bugs.  <smile/>
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Igor Maslov
> Sent: Wednesday, April 25, 2007 12:24 PM
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Dialog to let user select "Program Menu" folder
> 
> 
> 
> 
> That's what I did, but there are some restrictions on where user can place
> shortcuts.
> I used custom action to validate path, but it is still not ideal solution.
> 
> It looks like a such common task, I wonder why WiX does not provide
> specialized dialog for that.
> For example, InstallShield has such dialog.
> 
> Thank you for help,
> Igor
> 
> 
> Bob Arnson-3 wrote:
>>
>> Maslov, Igor wrote:
>>>
>>> I'd appreciate if you could point to such WiX dialog.
>>>
>>
>> There is none, but you don't need C++ for this -- just another dialog
>> like InstallDirDlg that spawns BrowseDlg.
>>
>> --
>> sig://boB
>> http://bobs.org
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
> 
> --
> View this message in context:
> http://www.nabble.com/Dialog-to-let-user-select-%22Program-Menu%22-folder-tf3640577.html#a10187781
> Sent from the wix-users mailing list archive at Nabble.com.
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dialog-to-let-user-select-%22Program-Menu%22-folder-tf3640577.html#a10228052
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to