The Product ID is stored in the property ProductID.  The Value attribute
should be [ProductID].

-Brian Simoneau

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of coolfishx
Sent: Tuesday, August 22, 2006 4:53 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Write Autogenerated Product Id in an Ini File



Hello,

 Is it possible to get an autogenerated Product Id an write it in an Ini
File... I am trying something like this :

<?xml version='1.0' encoding='Windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
  <Product Name='Foobar' Id='*'  Language='1033' Codepage='1252'
Version=1.0.0.' Manufacturer='Acme Ltd.'
UpgradeCode='0A7337B9-A681-4aa0-8E7C-3C99274B66C7'>
    <Package Id='*' Keywords='Installer'
      Description="Acme's Foobar  Installer"
      Comments='Foobar'  InstallerVersion='200' Languages='1033'
Compressed='yes' SummaryCodepage='1252' />

    <Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM
#1"
/>
    <Property Id='DiskPrompt' Value="Acme's Foobar [1]" />
    <Directory Id='TARGETDIR' Name='SourceDir'>
      <Directory Id='ProgramFilesFolder' Name='PFiles'>
        <Directory Id='Acme' Name='Acme'>
          <Directory Id='INSTALLDIR' Name='Foobar '>
            <Component Id='MainExecutable'
Guid='93A5D99D-8EDC-4671-8215-B0CC19837BE9'>
              <File Id='FoobarEXE' Name='FoobarAppl10.exe' DiskId='1'
                Source='FoobarAppl10.exe' Vital='yes'>
                <Shortcut Advertise='yes' Id="startmenuFoobar10"
Directory="ProgramMenuDir" 
                  Name="Foobar" WorkingDirectory='INSTALLDIR'
Icon="Foobar10.exe" IconIndex="0" />
              </File>
              <IniFile Id="SetupIniFile" Action="addLine"
Directory="INSTALLDIR"
                        Section="Install" Key="ProductID" Value=WHAT
SHOULD
I PUT HERE />
            </Component>


Thank you,
DM
-- 
View this message in context:
http://www.nabble.com/Write-Autogenerated-Product-Id-in-an-Ini-File-tf21
45040.html#a5921768
Sent from the wix-users forum at Nabble.com.


------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to