Calling resources/binaries that have changed filenames
Hi,
Got a slight problem in the fact that i have an exe which requires an inf and a cab file during exeuction, the exe calls the two files by name (expecting them to be in the same directory as itself), i have added these files as resources so they are store as binaries in the MSI file but what i've noticed is that when executed the files are put in C:\windows\installer but are renamed to unique nonsentical names.
This makes the exe fall over as it cannot find the inf and cab by name. The exe is third party and i am under license to use it "as is" so i cannot change the way it works.
Anyone got any ideas how i can add resources without the installer changing the filenames?
Got a slight problem in the fact that i have an exe which requires an inf and a cab file during exeuction, the exe calls the two files by name (expecting them to be in the same directory as itself), i have added these files as resources so they are store as binaries in the MSI file but what i've noticed is that when executed the files are put in C:\windows\installer but are renamed to unique nonsentical names.
This makes the exe fall over as it cannot find the inf and cab by name. The exe is third party and i am under license to use it "as is" so i cannot change the way it works.
Anyone got any ideas how i can add resources without the installer changing the filenames?
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
nheim
17 years ago
Hi Paul,
there is now mechanism in WPS that i know of to extract resource files to a given folder.
Installshield has this, but...
However, you could use a script in Custom Action to achieve this. Here, AngelD recently published a nice example:
http://itninja.com/question/how-do-you-roll-out-new-machines?5660
And at last: Why not just install those files with the file table to the programs location?
Regards, Nick
there is now mechanism in WPS that i know of to extract resource files to a given folder.
Installshield has this, but...
However, you could use a script in Custom Action to achieve this. Here, AngelD recently published a nice example:
http://itninja.com/question/how-do-you-roll-out-new-machines?5660
And at last: Why not just install those files with the file table to the programs location?
Regards, Nick
Posted by:
HotSpot
17 years ago
Posted by:
nheim
17 years ago
Hi Paul,
why do it after INSTALLFINALIZE?
Things like this will almost certainly be a show stopper with VISTA's UAC!
Do as much changes to the system in the MSI Script. In this case with a exe to be called,
use a type 34 or 50 CA and add 1024, better 3072 (to run it in system context) to make it deferred.
See: http://msdn2.microsoft.com/en-us/library/aa372048.aspx
With this you get the termination of a unsuccessful install, you would like to have.
Regards, Nick
why do it after INSTALLFINALIZE?
Things like this will almost certainly be a show stopper with VISTA's UAC!
Do as much changes to the system in the MSI Script. In this case with a exe to be called,
use a type 34 or 50 CA and add 1024, better 3072 (to run it in system context) to make it deferred.
See: http://msdn2.microsoft.com/en-us/library/aa372048.aspx
With this you get the termination of a unsuccessful install, you would like to have.
Regards, Nick
Posted by:
HotSpot
17 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.