Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Execute Program from Installed File's running from Source instead of destination

Updated: 23 May 2010 | 13 comments
Defuse's picture
0 0 Votes
Login to vote

I have created a custom event to launch an executable from the install directory after the Finish button is clicked.  The event launches the correct file however the file is executed from the installsource as opposed to the destination. I am not sure how this is happening or what to do to fix it.

discussion Filed Under:

Comments

AngelD's picture
12
Nov
2009
0 Votes 0
Login to vote

Verify that the file isn't

Verify that the file isn't set to be run from source instead of local (Component attribute bit msidbComponentAttributesSourceOnly)

Defuse's picture
12
Nov
2009
0 Votes 0
Login to vote

I will be the first to admit

I will be the first to admit I am not very strong with this application so I am speculating here. Is this what you were talking about?

AngelD's picture
12
Nov
2009
0 Votes 0
Login to vote

The "Run Location" value is

The "Run Location" value is correct for that component however there is not reference to any specific file.
Could you give us the details for the custom event.

Defuse's picture
12
Nov
2009
0 Votes 0
Login to vote

I used this process to create

I used this process to create the event.

https://kb.altiris.com/display/1n/articleDirect/in...

The event is tied to a check box on the exit dialog with a condition of 1 as shown below.

AngelD's picture
12
Nov
2009
0 Votes 0
Login to vote

So how does the RunPA custom

So how does the RunPA custom action look like (copy in the row from the CustomAction table)?

Defuse's picture
12
Nov
2009
0 Votes 0
Login to vote

Here is what the table

Here is what the table has.

"RunPA","34","INSTALLDIR1","PockAdv.exe FromPaInstall"

I have tried a couple different options to get this to work. Here are the others I have created as well

"LaunchPA","210","PockAdv.exe","FromPAInstall"
"Execute PA","18","PockAdv.exe","FromPaInstall"

All 3 have the same result in that the exe will run but it is running from the within the MSI it seems instead of the Install Directory.

saoulons's picture
17
Nov
2009
0 Votes 0
Login to vote

Defuse- Not sure if you've

Defuse-

Not sure if you've solved your problem, but I have been struggling with this myself... Here is a clearer KB article which has helped me solve it. The trick is to create the custom action in the MSI Script window and not muck with the table directly (I couldn't get it to work when editing the custom action table directly).

https://kb.altiris.com/display/1n/articleDirect/in...

Let me know if you need more details and I'll be happy to let you know how I got it to work (I'm not a wiz at this either). It's amazing to me that something so common seems like such an ordeal...

Cheers,

M

EdT's picture
12
Nov
2009
0 Votes 0
Login to vote

Can anyone see the images?

There appear to be imaged embedded in a couple of the previous posts, but I cannot see more than an outline. Can anyone else see them?

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

JohanH's picture
18
Nov
2009
0 Votes 0
Login to vote

I can see the images.

I can see the images.

EdT's picture
18
Nov
2009
0 Votes 0
Login to vote

Johan, What O/S and browser

Johan,
What O/S and browser are you using?

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

JohanH's picture
19
Nov
2009
0 Votes 0
Login to vote

Win XP SP3 32-bit and Firefox

Win XP SP3 32-bit and Firefox 3.5.5. Also works fine in a clean Windows 7 Pro 32-bit with IE 8.

EdT's picture
20
Nov
2009
0 Votes 0
Login to vote

Very odd

I'm running on a clean install of Win7 Ultimate with IE8 and cannot see the images.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

EdT's picture
20
Nov
2009
0 Votes 0
Login to vote

OK figured it out

When the thread opens, I get a security warning about whether I want to view only content delivered securely, and I was automatically answering YES. Choosing NO showed the images.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.