/build/static/layout/Breadcrumb_cap_w.png

autostart after install

hi all

i want to install an exe file and i want it to autostart after run.

how can i do it ?

is it poassible that after install the exe is copied into the autostart folder and how can i do it?

i tried with move file but i get error 2716 because my destination folder was Autostart and editor did not recognise it

thanks in advance for your help

0 Comments   [ + ] Show comments

Answers (4)

Posted by: slb 15 years ago
Purple Belt
0
Do you want to start your .exe file after the installation with your MSI file or after a restart/logoff-login?
Posted by: daher 15 years ago
Orange Belt
0
what i want is the following :

the exe should be installed into the destination folder specified by user (and that's not the problem here)

once the user runs the exe after installation, i want that the exe autostarts when the system reboots
Posted by: slb 15 years ago
Purple Belt
0
To start the exe after restart would not be a problem and there are different methods to do it..
you could use
HKLM/HKCU run key or runonce keys depending on the requirement
you could add the shortcut in the startup folder

But if you want this to happen only after the first launch of the exe, then as far as i know this could be done only with a help of a custom script.
There are lots of experts in this forum, may be you could expect few more simpler solutions to be provided [;)]...
Posted by: anonymous_9363 15 years ago
Red Belt
0
ORIGINAL: daher
once the user runs the exe after installation, i want that the exe autostarts when the system reboots
To do that, you'd need to alter the EXE itself: how is the package going to know when the EXE got run? As stated before, if you want the EXE to run after a reboot, you need to place a suitable command line into either the 'Run' or 'RunOnce' registry keys. My preference is to use the HKCU hive for such things, unless it has to be run for all users, in which case use HKLM.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ