/build/static/layout/Breadcrumb_cap_w.png

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?

0 Comments   [ + ] Show comments

Answers (6)

Posted by: nheim 17 years ago
10th Degree Black Belt
0
Hi Paul,
which MSI development tool do you use?
Regards, Nick
Posted by: HotSpot 17 years ago
Orange Senior Belt
0
WISE installation studio 7 but have packaging studio 7 too...
Posted by: nheim 17 years ago
10th Degree Black Belt
0
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
Posted by: HotSpot 17 years ago
Orange Senior Belt
0
I'll give this a go, thanks!

I would loved to install these files and then run them but i am waiting for a return code to decide whether to continue or to terminate install, and as we know this cannot be done (easily) after INSTALLFINALIZE (..or can it?!).
Posted by: nheim 17 years ago
10th Degree Black Belt
0
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
Posted by: HotSpot 17 years ago
Orange Senior Belt
0
Nick,

I've been struggling with the script, could you let me know how to extract resources to a given folder please?

there is now mechanism in WPS that i know of to extract resource files to a given folder.
Installshield has this, but...


Thanks in advance

Paul
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ