chandrabhushan
Posts: 76
Joined: Thu Jul 02, 2015 10:58 am

Adding the files in windows volume/Temp folder is not working

Hi,
As part of my requierment I have to launch a PDF file while installing the exe . For that i followed the tutorial to add it to temp and launch it in runtime by custom action .
I did thet but its not working .
Please help me with this .
I am using the Latest AI withy Enterprise license .
Pls see the attachment .
Attachments
Temp3.PNG
Temp3.PNG (27.79 KiB) Viewed 9272 times
Temp2.PNG
Temp2.PNG (37.82 KiB) Viewed 9272 times
Temp-.PNG
Temp-.PNG (21.15 KiB) Viewed 9272 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Adding the files in windows volume/Temp folder is not working

Hello,

In order to launch a temporary file, you should use the predefined Launch File custom action. To launch a tempoary file, you should follow these steps:
  • - go in the Files and Folders page and use the "Temporary Files" toolbar button to add your files as temporary files
    - go in the Custom Actions page and add the "Launch file" custom actions as a custom action without sequence
    - right-click on the "File To Launch" text field, select "File..." and choose your file you want to launch
In order to execute the custom action on a push button, as a published event, please follow the steps from the How to execute a custom action when a button is pushed? article.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chandrabhushan
Posts: 76
Joined: Thu Jul 02, 2015 10:58 am

Re: Adding the files in windows volume/Temp folder is not working

Hi,
Thanks for reply .
I have added a temp file and i want it to execute once user clicks on uninstall(Shortcut Menu ) . Please help me with this . I am able launch file in Installation stage .But not in Uninstallation stage .
Thanks .
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Adding the files in windows volume/Temp folder is not working

Hello,

Temporary Files are copied on the target machine at the beginning of the installation and are deleted at the end of it, ensuring you have access to them throughout the entire install process. They are not available during the uninstall process.

So, if you need to have access to the related files during the uninstall process you need to avoid adding the related files as temporary ones.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chandrabhushan
Posts: 76
Joined: Thu Jul 02, 2015 10:58 am

Re: Adding the files in windows volume/Temp folder is not working

Hi,
Thanks for reply
"So, if you need to have access to the related files during the uninstall process you need to avoid adding the related files as temporary ones."
Ok SO i have added the file in C:/Program Data .
Now i want that batch file to get executed instantly once user clicks on Uninstall button (either start menu or control panel ) .
Plese help me with this
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Adding the files in windows volume/Temp folder is not working

Hello,

I apologize for my delay reply.

Since you need to have access during the uninstall too, you need to add the related file as a regular one, not as a temporary file.
To execute a bat file, please follow the steps from the How to launch a CMD or BAT file? article. Note that you need to execute the custom action before the Remove Resources stage from the Install Execution Stage. Also, the custom action should be executed during Uninstall only.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chandrabhushan
Posts: 76
Joined: Thu Jul 02, 2015 10:58 am

Re: Adding the files in windows volume/Temp folder is not working

Hi,
Thanks for the reply ,
Post doing As you said i am getting this error :-

[
SEH_AV_DEP_BADPTR] ACCESS_VIOLATION (0xc0000005) at address [0x0fffff7a]

Advanced Installer Enhanced UI 12.5 build 66677
*** Stack Trace (x86) ***

[0x0fffff7a] -----
[0x72f92c57] MsiSetOfflineContextW()
[0x72e5a9cc] MsiGetProductCodeW()
[0x72eb7c12] MsiGetPropertyW()
[0x003ccee7] -----
[0x003e030a] -----
[0x003efe37] -----
[0x0033185f] -----
[0x003ef894] -----
[0x003efa3f] -----
[0x003db1d1] -----
[0x003e220b] -----
[0x003e21d8] -----
[0x00331709] -----
[0x00331740] -----
[0x003e1d18] -----
[0x0037eb7a] -----
[0x0037f0cb] -----
[0x0037eeb1] -----
[0x0037f858] -----
[0x00391d5c] -----
[0x77029882] RtlInitializeExceptionChain()
[0x77029855] RtlInitializeExceptionChain()
[0x00330000] MODULE_BASE_ADDRESS
Please help me with this
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Adding the files in windows volume/Temp folder is not working

Hello,

Can you please try to use the latest version of Advanced Installer and see if the behaviour still persist?

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

Return to “Building Installers”