chnage file name at install time

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.
 
C

Carolyn Napier [MSFT]

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top