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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Hi Paul,
which MSI development tool do you use?
Regards, Nick
Answered 06/04/2007 by: nheim
Tenth Degree Black Belt

Please log in to comment
0
WISE installation studio 7 but have packaging studio 7 too...
Answered 06/04/2007 by: HotSpot
Orange Senior Belt

Please log in to comment
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
Answered 06/04/2007 by: nheim
Tenth Degree Black Belt

Please log in to comment
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?!).
Answered 06/04/2007 by: HotSpot
Orange Senior Belt

Please log in to comment
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
Answered 06/04/2007 by: nheim
Tenth Degree Black Belt

Please log in to comment
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
Answered 06/05/2007 by: HotSpot
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity