View Single Post
Old 25th October 2011, 19:19   #5
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
ok, the problem is this. as the uac plugin elevates the installer, the elevated instance will be excuted with additional parameters in the commandline (e.g. /MyParameter -> /UAC:111296 /NCRC /MyParameter)

as i was using a simple commandline switch (/MyParameter), i could not get this using GetParameters. GetOptions on the other hand still works fine, i just didn't use it before.

oddly enough, neither processexplorer nor the windows 7 task manager ever displayed the commandline parameters for the elevated process. i had to use a messagebox to find my out the above.
Yathosho is offline   Reply With Quote