chnage file name at install time

  • Thread starter Thread starter Glenn M
  • Start date Start date
G

Glenn M

Is there any way i can chnage the name of the target file name at run
time based on certain files being present.

For example i have a hardware msi that installs a file called
oemxx.inf into c:\windows\inf

The xx's inthe file are taken from the last oemxx.inf the folder (i.e
oem56.inf would make the target fil become oem57.inf)

Is there anyway i can accomplish this at run time.
 
The filename is part of persistent data in the File table of the installation
package. Because an installation runs by opening the installation package in
readOnly mode, you cannot make modifications to data that already exists in the
package.

One possibility would be to dynamically populate the data in the File table
using an immediate custom action that inserts temporary rows. You would also
need to make sure that this custom action ran during all installation
transactions so that the File table row was present for reinstalls, repairs, and
uninstalls.

Hope this helps,
- Carolyn Napier
Microsoft Windows Installer Team

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
MSI FAQ:
<http://www.microsoft.com/windows2000/community/centers/management/msi_faq.mspx>
 
Back
Top