We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

vidur
Posts: 43
Joined: Thu Jul 31, 2014 4:21 am

Using temporary files in custom action

Hi,
I have recently updated my advanced installer to the latest one 11.4.1. And used it to build my project .
When i ran the setup file, it failed at a part where i use a temporary file in a custom action. When i checked my project file, i noticed at the custom action part the action data is underlined in red and says identifier not found
*This worked perfectly fine on the previous version, has something changed?

Scenario
file : Windows Value\Temporary\testfile.exe
Table data
FileID:testfile.exe
Proprty:AI_TESTFILE.EXE

Custom action:
action data : [&testfile.exe]

Addition
Log:
Executing op: ActionStart(Name=ManageExplorer,,)
MSI (s) (9C:BC) [10:25:45:347]: Executing op: CustomActionSchedule(Action=ManageExplorer,ActionType=3073,Source=BinaryData,Target=CreateExeProcess,)
MSI (s) (9C:A0) [10:25:45:367]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIDD80.tmp, Entrypoint: CreateExeProcess
MSI (s) (9C:94) [10:25:45:367]: Generating random cookie.
MSI (s) (9C:94) [10:25:45:377]: Created Custom Action Server with PID 8604 (0x219C).
MSI (s) (9C:3C) [10:25:45:407]: Running as a service.
MSI (s) (9C:3C) [10:25:45:407]: Hello, I'm your 32bit Elevated custom action server.
CustomAction ManageExplorer returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 10:25:45: InstallExecute. Return value 3.
What am i doing wrong here?

Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Using temporary files in custom action

Hello,

I'm not sure why you encountered the this behavior.
In order to have a better view about this, can you please send us the .AIP (project file) and a verbose log of the installation process to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vidur
Posts: 43
Joined: Thu Jul 31, 2014 4:21 am

Re: Using temporary files in custom action

Hi,
I have sent the aip file along with log to your mentioned email. Still waiting for a reply.
andy way i have also uploaded the test aip here which fails as well. along with the log. Can you please tell me whats wrong?
Attachments
TempFilecustomactionFailed.LOG
Failure log
(470.04 KiB) Downloaded 288 times
Your Application.aip
AIP files
(12.36 KiB) Downloaded 349 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Using temporary files in custom action

Hi Vidur,

Can you please enable the Run under the LocalSystem account with full privideges (no impersonation) option from the custom actions properties and see if the behavior still persist?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”