This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Using Support Files From Custom Action
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎May 15, 2008
10:38 AM
Using Support Files From Custom Action
Hey,
I'm a new user to InstallShield so forgive me if my answer is dumb 😉
I want to start an exe file that I have in the Support files,
But it seems that the files under the Support files never get extracted!
What am I missing?
Thanks ahead
--sternr
I'm a new user to InstallShield so forgive me if my answer is dumb 😉
I want to start an exe file that I have in the Support files,
But it seems that the files under the Support files never get extracted!
What am I missing?
Thanks ahead
--sternr
(13) Replies
‎May 15, 2008
02:56 PM
What type of project are you using? If it's a Basic MSI project, using the Binary table is usually more appropriate; otherwise, what is the code that fails?
‎May 15, 2008
03:27 PM
Thanks for the reply!
Yes - I'm using Basic MSI project, and the reason I'm not using the binary table is, that some of the files I store in the Support Files is a small application which uses some dlls as well.
The code that fails is saying it cant find the files in the SUPPORTDIR directory
Looking at the temporary folder shows its correct - none of the files I added to the "Support Files" is shown there...
Any ideas?
Thanks
--sternr
Yes - I'm using Basic MSI project, and the reason I'm not using the binary table is, that some of the files I store in the Support Files is a small application which uses some dlls as well.
The code that fails is saying it cant find the files in the SUPPORTDIR directory
Looking at the temporary folder shows its correct - none of the files I added to the "Support Files" is shown there...
Any ideas?
Thanks
--sternr
‎May 15, 2008
03:33 PM
Take a look at the sequences and a logfile from the install. You should see a CA called ISSetupFilesExtract and a property called [SUPPORTDIR] getting set. IS automatically sets this up when you add a file to Support Files. Try adding/removing another file if the CA is missing.
‎May 15, 2008
03:45 PM
Did you try adding another file to support files? That's the action that triggers the authoring. Wiring it up manually is possible but a pain since there are records in numerous tables to properly extract and cleanup.
‎May 15, 2008
04:31 PM
Are you using SUPPORTDIR or MsiGetProperty(SUPPORTDIR) ( the latter is correct as of IS12 and later. See the migration sticky in this forum ).
As an aside ( since I already did the work ) adding a file adds the following to your install:
[HTML]
[/HTML]
As an aside ( since I already did the work ) adding a file adds the following to your install:
[HTML]
ISSetupFilesHelper | <ISProductFolder>\redist\language independent\i386\SFHelper.dll |
CancelSetup | Yes | DoAction | ISSetupFilesCleanup | 1 | 200 |
SetupCompleteError | Finish | DoAction | ISSetupFilesCleanup | 1 | 200 |
SetupCompleteSuccess | OK | DoAction | ISSetupFilesCleanup | 1 | 200 |
SetupInterrupted | Finish | DoAction | ISSetupFilesCleanup | 1 | 200 |
ISSetupFilesCleanup | 257 | ISSetupFilesHelper | SFCleanupEx | |
ISSetupFilesExtract | 257 | ISSetupFilesHelper | SFStartupEx |
New Path Variable | C: | 2 |
SetupFile1 | boot.ini | 0 | 0 | <New Path Variable>\boot.ini |
ISSetupFilesCleanup | 6601 | |||
ISSetupFilesExtract | 3 |
ISSetupFilesCleanup | 1301 | |||
ISSetupFilesExtract | 3 |
‎May 15, 2008
04:44 PM
WOW!
Gosh I feel stupid now, you maid my day 😉
Thanks alot!
I know I'm pushing it, but one last question (I promise!),
I've read in the docs I need to use GetProfInt to get data from my setup.ini file, BUT it also requires me to give it the location of the setup.ini...
How can I get the location of my initial setup file? or again - am I doing somthing stupid?
Thanks alot anyway!!!
--sternr
Gosh I feel stupid now, you maid my day 😉
Thanks alot!
I know I'm pushing it, but one last question (I promise!),
I've read in the docs I need to use GetProfInt to get data from my setup.ini file, BUT it also requires me to give it the location of the setup.ini...
How can I get the location of my initial setup file? or again - am I doing somthing stupid?
Thanks alot anyway!!!
--sternr
‎May 15, 2008
08:33 PM
Try MsiGetProperty ... SETUPEXEDIR
‎May 16, 2008
03:04 AM
**EDITED**
Sorry, it all works, BUT I must use the .exe file and not the MSI directly...
The SOURCEDIR property (used by MsiGetProperty) is available for both situations but may be incorrect in case of a streamed MSI.
Again thanks alot for the training and the immense help!
If at anytime you'd need help in .Net... 😉
--sternr
Sorry, it all works, BUT I must use the .exe file and not the MSI directly...
The SOURCEDIR property (used by MsiGetProperty) is available for both situations but may be incorrect in case of a streamed MSI.
Again thanks alot for the training and the immense help!
If at anytime you'd need help in .Net... 😉
--sternr
‎May 16, 2008
07:08 AM
Yes, SETUPEXEDIR is a public property passed into the MSI by SETUP.EXE. I assumed ( incorrectly ) that since you had a setup.ini you probably had a setup.exe. You can also checkout the OriginalDatabase property but you'll have to throw it through a CA to parse out the directory.
As for the .NET.... well I am looking for a little help with a side project. How's your C++? 🙂
Basically I'm looking for a way to emulate a .NET remoting host in C++ without loading the CLR.
As for the .NET.... well I am looking for a little help with a side project. How's your C++? 🙂
Basically I'm looking for a way to emulate a .NET remoting host in C++ without loading the CLR.
‎May 16, 2008
08:58 AM
Interesting, but then you'd need to implement deserialization in C++ wouldn't?
Sound interesting, if you're serious - PM me I've had my share of C++ & .Net interoperability, and I'm always on for some more 😉
Sound interesting, if you're serious - PM me I've had my share of C++ & .Net interoperability, and I'm always on for some more 😉