The application is an in-house developed. When the application is uninstalled the package needs to run the command below post-uninstall C:\Windows\Microsoft.NET\Framework\v2.0.50727\CasPol.exe -polchgprompt off -m -rg "legal" -polchgprompt off

The custom action to do it does not work. The error is 2727 which is an error related to directory. Not sure what is wrong. Below are some details of the custom action.

Working Directory - WindowsFolder\Microsoft.NET\Framework\v2.0.50727\
File Name and command line - caspol.exe -polchgprompt off -m -rg "legal" -polchgprompt off
Return Processing - Synchronous (Check exit code)
In-Script execution - Deferred Execution
Install Exec Sequence - After InstallExecute
Install Exec Condition - REMOVE
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
error 2727 relates to the directory path not existing in the directory table.

what type of custom action are you using?

http://msdn.microsoft.com/en-us/library/aa372048%28VS.85%29.aspx

if it's a 34 then you need the entry in the directory table
Answered 06/06/2010 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
0
I am calling the exe from windows folder, the path is in my first post. am not using vbs. thanks for your time.
Answered 06/07/2010 by: jimcox
Orange Belt

Please log in to comment
0
You have misunderstood the response and you have contradicted yourself.

Your original post states that the EXE's called from 'WindowsFolder\Microsoft.NET\Framework\v2.0.50727\ ' whereas now you say it's called from just the Windows folder.

Look up your Custom Action's 'Type' value. If it's '34', then you will need to add the entire path to the executable as entries in the Directory table. Pretty much exactly what is says for the MSDN entry that Timmsie posted.
Answered 06/07/2010 by: VBScab
Red Belt

Please log in to comment
0
Hi jimcox,

Could you give us some additional information?
If you look directly in the CustomAction table of your MSI, what value does the Type column of your CA have?
Answered 06/07/2010 by: Rheuvel
Brown Belt

Please log in to comment
0
Sorry for the confusion on the directory, it is WindowsFolder\Microsoft.NET\Framework\v2.0.50727\

The value of Type column for this CA is "1058", Source is "WindowsFolder\Microsoft.NET\Framework\v2.0.50727\" and target is "caspol.exe -polchgprompt off -m -rg "legal" -polchgprompt off"
Answered 06/07/2010 by: jimcox
Orange Belt

Please log in to comment
0
So it's a Type 34, in the deferred execute sequence (1058 - 1024 = 34, where 1024 means it's in DE sequence). So, you need to ensure that the Directory table contains entries - with the correct parents set - for all the folders in the path, i.e. a row for WindowsFolder (which should already be present!), one for 'Microsoft', one for '.NET\Framework' and one for 'v2.0.50727'.
Answered 06/07/2010 by: VBScab
Red Belt

Please log in to comment
0
Hmm, you do have a type 34 CA then.

As you also specified In-Script execution - Deferred Execution (info in first post), this will give the type column a value of 1024.

1058 - 1024 = 34.


So what you can do is either add the whole path to your directory table, or modify your CA to type 50. (also see THIS list again)



[edit]
VBScab.. damn you... again :p
Answered 06/07/2010 by: Rheuvel
Brown Belt

Please log in to comment
0
hang on, isn't that what I said 5 posts ago! [;)]
Answered 06/07/2010 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
0
You did, but we obviously needed another approach to get this verified ;)
Answered 06/07/2010 by: Rheuvel
Brown Belt

Please log in to comment
0
Modified the CA type to 1074 (1074-1024=50). The uninstall failed and did a rollback, here is the log

MSI (s) (DC:A4) [10:52:58:901]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (DC:A4) [10:53:08:120]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (DC:A4) [10:53:08:120]: Product: VendorApp2.2 -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: CaspolPostUninstall, location: , command: caspol.exe -polchgprompt off -m -rg "legal" -polchgprompt off
Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: CaspolPostUninstall, location: , command: caspol.exe -polchgprompt off -m -rg "legal" -polchgprompt off
Answered 06/07/2010 by: jimcox
Orange Belt

Please log in to comment
0
The location is blank. Have you specified a property with the correct path?
Answered 06/07/2010 by: Rheuvel
Brown Belt

Please log in to comment
0
No luck, I am still trying.
Also, this custom action can be done by a vbs calling the exe with the switches. The switch has spaces as well as double quotes (CasPol.exe -polchgprompt off -m -rg "legal" -polchgprompt off). What will be the vbs statement for switches that have space and a double quotes?
Answered 06/07/2010 by: jimcox
Orange Belt

Please log in to comment
0
If the bare command doesn't work, moving it to a VBS won't magically make it do so, so I'd forget the VBS route.

Have you done any of the work in fixing-up your Directory table?
Answered 06/07/2010 by: VBScab
Red Belt

Please log in to comment
0
I have to agree with that. Just stick with the type 34 CA and fill the directory table.
Answered 06/08/2010 by: Rheuvel
Brown Belt

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