My installer makes changes in registry. Before that it should take back up of
registry in a .reg file. It is doing all this but with few problems.
If I store the reg back up file in program files folder then it is saved there
through below code:
<Binary Id="reg" SourceFile="C:\WINDOWS\system32\reg.exe"></Binary>
<CustomAction Id="CA_reg" BinaryKey ="reg" Execute="deferred"
ExeCommand="EXPORT "HKCU\Software\Microsoft\Internet
Explorer\TabbedBrowsing"
"[ProgramFilesFolder]tab.reg""></CustomAction>
But If I try to save it in the Install folder then it is not saved, rather
install folder itself is not getting created. See the code below:
<Binary Id="reg" SourceFile="C:\WINDOWS\system32\reg.exe"></Binary>
<CustomAction Id="CA_reg" BinaryKey ="reg" Execute="deferred"
ExeCommand="EXPORT "HKCU\Software\Microsoft\Internet
Explorer\TabbedBrowsing" "[TestReg]tab.reg""></CustomAction>
<InstallExecuteSequence>
<Custom Action="CA_reg" Before="ProcessComponents">NOT
Installed</Custom>
</InstallExecuteSequence>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="TestReg" />
</Directory>
</Directory>
</Fragment>
What am I missing? Do I have to specify Directory in the custom action?
Or is it happening because of sequencing problem? I have tried
After="InstallInitialize" too. May be the custom action is getting executed
before the Install folder could get created but then when installation is
finished I don't see the Install folder too.
Basically I want the reg. back up to be stored inside my install folder. Please
guide me.
Regards,
Aparna Karkare
==============================================================================
This communication, including attachments, is confidential, may be subject to
legal privileges, and is intended for the sole use of the addressee. Any use,
duplication, disclosure or dissemination of this communication, other than by
the addressee, is prohibited. If you have received this communication in error,
please notify the sender immediately and delete or destroy this communication
and all copies.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users