cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
AJungen
Level 6

How to suppress windows popup?

I have a BASIC MSI Installation.
After Installation i have to start an exe file.
Everytime i start the exe file I first got a Windows popup dialog wich is asking for windows rights.
I don't want this popup.


LaunchApplication( szProgram,
strCmdParam,
szCurrent,
SW_SHOW,
INFINITE,
LAAW_OPTION_WAIT | LAAW_OPTION_CHANGEDIRECTORY | LAAW_OPTION_USE_SHELLEXECUTE)


How do i suppress the Windows popup ?
The exe-file does not need admin rights.
I am not installing on windows vista.

Any ideas ?


Andreas
Labels (1)
0 Kudos
(10) Replies
ChandanOmkar
Level 8

may be this happens due to the app you are launching with the setup. The application is searching for the admin rights....
0 Kudos
AJungen
Level 6

hm... i don't know.
I tried the following:

I changed the options to:
LAAW_OPTION_WAIT | LAAW_OPTION_CHANGEDIRECTORY
and didn't install into the 'Program files' folder, and the windows popup didn't appear.
But i need to install into 'Program files' folder

When i install into 'Program files' folder, i got an error starting my exe file, (without the option LAAW_OPTION_USE_SHELLEXECUTE).

:confused:

any idea?
0 Kudos
ChandanOmkar
Level 8

Which OS you are using? I think your setup.exe is running as Invoker. Change its elevation level to Administrator.
0 Kudos
AJungen
Level 6

Hi, i need to install on XP and 2000
The user who will use this exe at last, has no administartor rights, so windows would ask for the admin rights, if i set it to administrator, i think.

at the moment i use the following manifest














0 Kudos
ChandanOmkar
Level 8

Try to run the exe from command prompt(from Program Files) and then check its behaviour. If its same then it happens due to some security setting in your PC. otherwise its your setup issue.
0 Kudos
AJungen
Level 6

The popup does not appear.

What do you mean with setup issue ?
Do you think it is a problem with the installer configuration ?
Do you have a hint ?

Andreas
0 Kudos
ChandanOmkar
Level 8

Somehow your setup is elevating the exe's execution level. Check your installer configuration.
0 Kudos
AJungen
Level 6

first: thanks for trying to help me 🙂

but i have no conclusion where to look.
I didn't set any permissions on the file.

the Script ist started with:
In-Script Execution: Immediate Execution
Execution Scheduling: Always execute
Install Exec Sequence: After ISSelfRegisterFinalize
Install Exec Condition: not REMOVE="ALL"


Without the option LAAW_OPTION_USE_SHELLEXECUTE and not installing into 'program files' i can run the exe file without windows popup dialog. :confused:

I would like to look for what you said,
but i don't know where i have to look for these configuration and I have no idea what i am looking for. :confused:

Andreas
0 Kudos
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

This should only happen if the ShellExecute verb was changed from its default value of "open" to something like "runas". The LAAW_SHELLEXECUTEVERB should not be changed in the setup script if the setup is not running on Windows Vista or newer (technically, the verb can be changed on XP or earlier, but this will result in a Run As prompt asking for a username and password to launch the executable under that account).
0 Kudos
AJungen
Level 6

Many thanks!!!

yes, now it works.


Andreas
0 Kudos