Re: [WiX-users] Writing to ProgramFolder with Custom Action Dll in C++

2011-07-15 Thread Michael Ganz
orge.net > Betreff: Re: [WiX-users] Writing to ProgramFolder with Custom Action > Dll in C++ > > On 14-Jul-11 18:31, Michael Ganz wrote: > > MsiGetPropertyA(hInstall, "INSTALLDIR", > _pcKeyPath,&_dKeyPathLen); > > ... > > MsiSetPropertyA(h

Re: [WiX-users] Writing to ProgramFolder with Custom Action Dll in C++

2011-07-15 Thread Bob Arnson
On 14-Jul-11 18:31, Michael Ganz wrote: > MsiGetPropertyA(hInstall, "INSTALLDIR", _pcKeyPath,&_dKeyPathLen); > ... > MsiSetPropertyA(hInstall, "KEYWRITESUCCESS", "0"); > Deferred custom actions can't read or write property values. See "Obtaining Context Information for Deferred Execu

Re: [WiX-users] Writing to ProgramFolder with Custom Action Dll in C++

2011-07-15 Thread Wilson, Phil
, 2011 1:47 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Writing to ProgramFolder with Custom Action Dll in C++ Thought I've done this with: Michael > -Ursprüngliche Nachricht- > Von: Wilson, Phil [mailto:phil.wil...@inv

Re: [WiX-users] Writing to ProgramFolder with Custom Action Dll in C++

2011-07-15 Thread Michael Ganz
wix-users@lists.sourceforge.net > Subject: [WiX-users] Writing to ProgramFolder with Custom Action Dll in > C++ > > Hello List, > > > > I'm using WiX for creating a setup with a keyfile with openSSL. > > The keyfile has to be placed in the ProgramFolderDir. &g

Re: [WiX-users] Writing to ProgramFolder with Custom Action Dll in C++

2011-07-15 Thread Peter Shirtcliffe
Have you set InstallPrivileges="elevated" on the Package element ? -Original Message- From: Michael Ganz [mailto:michael_g...@t-online.de] Sent: 14 July 2011 23:32 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Writing to ProgramFolder with Custom Action Dll in C++

Re: [WiX-users] Writing to ProgramFolder with Custom Action Dll in C++

2011-07-14 Thread Wilson, Phil
Custom actions need to be deferred to run with elevated privilege. Phil Wilson -Original Message- From: Michael Ganz [mailto:michael_g...@t-online.de] Sent: Thursday, July 14, 2011 3:32 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Writing to ProgramFolder with Custom

[WiX-users] Writing to ProgramFolder with Custom Action Dll in C++

2011-07-14 Thread Michael Ganz
Hello List, I'm using WiX for creating a setup with a keyfile with openSSL. The keyfile has to be placed in the ProgramFolderDir. After creating the key with the Custom Action, I push it in a Property called "LICENSE". Another function should write this file to the products shortname wit