[wix-users] Install a component once more.
Mahesh Wickramasinghe
wickramasingha4u at gmail.com
Tue Sep 12 19:43:51 PDT 2017
Thank you
User may add any number of printers.
With that condition, Can I still approach for separate component for each.
On Wed, Sep 13, 2017 at 11:17 AM, Blair Murri via wix-users <
wix-users at lists.wixtoolset.org> wrote:
> You need a separate component for each simultaneously installed printer,
> if that is the way you want to structure each printer.
>
>
>
> Sent from my Windows 10 phone
>
>
>
> From: Mahesh Wickramasinghe via wix-users<mailto:wix-users@
> lists.wixtoolset.org>
> Sent: Tuesday, September 12, 2017 7:12 PM
> To: wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>
> Cc: Mahesh Wickramasinghe<mailto:wickramasingha4u at gmail.com>
> Subject: [wix-users] Install a component once more.
>
>
>
> I am creating a installer for a printer driver.
> I need to add a registry key when i add a printer.
>
> I could do that at the installing time as a feature
>
> <Feature Id="RegistrySetup" Level="1" Title="RegistrySetup"
> AllowAdvertise="no" InstallDefault="local" Display="expand">
> <ComponentRef Id ="RegistrySetup"/>
> </Feature>
>
>
> <Component Win64='$(var.Win64)' Id='RegistrySetup' Guid=' '
> Directory='TARGETDIR'>
> <RegistryKey Root="HKLM" Key='[UtillRegKey]'
> ForceCreateOnInstall='yes' ForceDeleteOnUninstall='yes' >
> <Permission User="Everyone" GenericAll="yes" />
> </RegistryKey>
> </Component>
>
>
> Now I want to let users to add another printer. So i changed the
> "DeliMaintenanceTypeDlg". If user click the "Change" Button the custom UI
> will be opened and let add a new printer. I have done that that using
> custom actions. but i need to run above feature again and add another
> registry key '[UtillRegKey]' is set by a custom action so the value is
> always differ.
>
> The problem is i cant find a way to run above component again when user run
> the installer for change. Can any one show me a path ?
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
--
~මහේෂ්~
http://arunadeepa.blogspot.com/
More information about the wix-users
mailing list