PC Review


Reply
Thread Tools Rate Thread

chnage file name at install time

 
 
Glenn M
Guest
Posts: n/a
 
      14th Jan 2004
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.
 
Reply With Quote
 
 
 
 
Carolyn Napier [MSFT]
Guest
Posts: n/a
 
      17th Jan 2004
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>

"Glenn M" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Worksheet Chnage....still need help please Brettjg Microsoft Excel Programming 4 9th Apr 2009 12:44 PM
Chnage the value of the scrollbar only one time Gidi Microsoft C# .NET 0 4th Apr 2008 11:08 AM
i need someone to help me to chnage homepage Windows XP Internet Explorer 2 25th Apr 2004 12:18 AM
I've a VideoCapture Card,I can install it under run-time, but can not import the inf file in componnt designer saber Windows XP Embedded 3 8th Aug 2003 11:39 PM
Can not chnage my .OST File After HD Crash Tony Karam Microsoft Outlook 2 20th Jul 2003 06:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:10 AM.