udonmez
Posts: 16
Joined: Thu Feb 14, 2013 12:06 pm
Location: Ankara

returned actual error code 1

Hi,
I am getting an error during ther custom action run;
the error is : "CustomAction LaunchFileOrURL_postInstall returned actual error code 1 (note this may not be 100% accurate if translation happened inside sandbox)"
when I check the command wind error level is 0 but after this step installation is corrupted.

I attached the log file.
regards,

Unsal
Attachments
ArcGISServerPostInstallationCOTs.log
(218.27 KiB) Downloaded 462 times
error1.jpg
error1.jpg (210.9 KiB) Viewed 10620 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: returned actual error code 1

Hi Unsal,

This could happen because your custom action doesn't have enough rights to execute properly. Can you try to run it "deferred" with "no impersonation" and see if the behavior still persists?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udonmez
Posts: 16
Joined: Thu Feb 14, 2013 12:06 pm
Location: Ankara

Re: returned actual error code 1

Hi Eusebiu,
You are right but How can I do this?. As you see the attachment, all the features that you mentioned are disabled.(I don't know why? when I investigate my another project this properties are enabled.)
Regards,
Unsal
Attachments
Error2.jpg
Error2.jpg (69.78 KiB) Viewed 10604 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: returned actual error code 1

Hi Unsal,

These options are disabled if your custom action is placed before "Install Execution Stage -> Preparing" action group or after "Install Execution Stage -> Finish Execution" action group.

If you want to run your custom action after "Install Execution Stage -> Finish Execution" action group you can use the "Launch file as Administrator" custom action, then go in the Dialogs page and create an "Execute custom action" published event on the "Finish" button of the "ExitDialog" dialog which takes your custom action as an argument.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udonmez
Posts: 16
Joined: Thu Feb 14, 2013 12:06 pm
Location: Ankara

Re: returned actual error code 1

If I use a below line at the end of the batch file.
I am getting that error again.

echo This window will be closed after 5 seconds...
choice /d y /t 5 > nul

I think better way is using the below line;
timeout /t 5

Return to “Common Problems”