|
-
Jan 18th, 2017, 04:05 AM
#1
[RESOLVED] project compiling with elevation shield when compiled in W10
i have a one form project, with some control arrays
creates an instance of IE, does some webscraping
allows user editing
rewrites the web page and ftp uploads it back to the website, using a shell object
no manifest or init commoncontrols, no API declares
does write one file to app.path, but the exe is portable and not installed to program files
can anyone see anything, that may be causing the executable to elevate to run as admin, when compiled on windows 10
or where to start looking
i made up some new do nothing project no shield appeared when compiled
maybe i need to copy the form one procedure at a time into a new procedure, and compile each addition
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jan 18th, 2017, 04:22 AM
#2
Re: project compiling with elevation shield when compiled in W10
What is the name of the executable that is generated? I remember reading somewhere that certain words in an executable's name will trigger this (setup, install and similar).
-
Jan 18th, 2017, 04:30 AM
#3
Re: project compiling with elevation shield when compiled in W10
orderform.exe \orderform2.exe
looks like you got it in one
saved mynew.exe, no shield
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jan 18th, 2017, 05:26 AM
#4
Re: [RESOLVED] project compiling with elevation shield when compiled in W10
Experienced this too with a file with the string "updater" in the application name.
And it is an updater... But I replaced the word "updater" with "downloader" et voila, no more problems.
-
Jan 18th, 2017, 07:16 AM
#5
Re: [RESOLVED] project compiling with elevation shield when compiled in W10
Of course just adding a manifest that declares your program's requestedExecutionLevel means these sorts of appcompat shims aren't applied. Hard to believe we're still talking about this a decade after it was introduced.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|