Re: 2 identical projects ---> 2 compiled exec causing Vista different response
- From: "Jan Hyde (VB MVP)" <StellaDrinker@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 12 Nov 2008 09:09:26 +0000
"Jack" <replyto@it>'s wild thoughts were released on Tue, 11
Nov 2008 13:27:50 -0500 bearing the following fruit:
Jan, with all the respect, you did not get hold of the problem.
Jack
I'm certain you are correct, I think it's going to take
someone else to explain it to me though.
"Jan Hyde (VB MVP)" <StellaDrinker@xxxxxxxxxxxxxxxxxxx> wrote in message
news:lliih4h7607kdddpdcs75o31f3bp16n123@xxxxxxxxxx
"Jack" <replyto@it>'s wild thoughts were released on Mon, 10
Nov 2008 11:15:45 -0500 bearing the following fruit:
Jan,
You completely missed my post.
I am NOT talking about exe title. I am talking about vbasic project file
title (.vbp)
The compiled file's title does not matter. It has nothing to do with the
problem.
Jack
If you are NOT talking about the compiled exe, (and
everything I've read so far indicates to me that you are)
then for the UAC prompt to come up in the IDE means VB is
not being run 'as administrator' and if that's the case all
bets are off because the IDE may need to do a number of
things that require admin rights, particulalry on Vista.
"Jan Hyde (VB MVP)" <StellaDrinker@xxxxxxxxxxxxxxxxxxx> wrote in message
news:npmgh4p0hgblt9fvm8qumnug5obq10v4em@xxxxxxxxxx
"Jack" <replyto@it>'s wild thoughts were released on Mon, 10
Nov 2008 10:23:01 -0500 bearing the following fruit:
Bingo!
I have discovered the source of the problem but I do not
understand the mechanism behind it.
I need some heavy guns in this forum to pitch in.
The problem appears to be the underscore in the saved project file's
name.
Originally, the project was created and saved as Project1.vbp.
The compiled executive runs fine from within Inno Setup in Vista
environment.
I have several apps I am workin on setup now.
To distinquish between each app I renamed Project1.vbp to ADP_setup.vbp,
and
the exe file compiled started having problem in Vista.
Removing the underscore, and using only ADP.vbp removes the problem.
How that simple underscore can influance the compiler output and as a
consequence Vista UAC response?
Because you didn't just remove the underscore did you?
Think about this. How does Vista know that a setup program
is a setup program?
If you saw these two files on your PC, which one would you
think is a setup program?
ADP_setup.exe
ADP.exe
One of these files Vista will recognise as a setup program
and correcly prompt for elevated privileges. The other I'm
guessing Vista will run under user privileges.
J
Your comments deeply appreciated,
Jack
"Jack" <replyto@it> wrote in message
news:uXj89JrQJHA.144@xxxxxxxxxxxxxxxxxxxxxxx
Hello,
I have posted that question in Inno Setup newsgroup before
realizing that it is vbasic problem not Inno's.
I created Project1 a few days ago. The compiled exec1.exe file is used
with
Inno Setup.
I am testing the Inno setup under Vista Ultimate running in VPC, as a
standard user with UAC turned on.
When I start the setup, User Account Control kicks in and gives me an
option
to continue as Administrator.
There are not other choices except 'Cancel' setup.When I select to
continue
the setup program runs in elevated state.
All was running fine, until I modifed Project1 (nothing significant,
and
I
do not even remember what the modification). Now, each time running
Inno
Setup UAC in Vista kicks in with the following error:
"
Unable to execute file:
...\adp_inno.exe
CreateProcess failed: code 740
The requested operation requires elevation.
"
That message appears BEFORE exec1.exe run. The breakpoint set as the
first
line of code in Sub Main() is never triggered.
But I tested that it is not the code problem or Inno script problem.
I have created a new Project2, copied ALL code from Project1 and
created
the
new exec1.exe.
That file does not cause any problem.
What I need is your help to find out, why the executable compiled in
Project1 causes Vista UAC problem, but the same code compiled in
Project
2
does not. Both project properties are the same (set at default).
I am using vbasic5 and I can repeat both compilation many times with
exactly
the same end result.
Thanks,
Jack
--
Jan Hyde (VB MVP)
https://mvp.support.microsoft.com/profile/Jan.Hyde
--
Jan Hyde (VB MVP)
https://mvp.support.microsoft.com/profile/Jan.Hyde
--
Jan Hyde (VB MVP)
https://mvp.support.microsoft.com/profile/Jan.Hyde
.
- References:
- 2 identical projects ---> 2 compiled exec causing Vista different response
- From: Jack
- Re: 2 identical projects ---> 2 compiled exec causing Vista different response
- From: Jack
- Re: 2 identical projects ---> 2 compiled exec causing Vista different response
- From: Jan Hyde (VB MVP)
- Re: 2 identical projects ---> 2 compiled exec causing Vista different response
- From: Jack
- Re: 2 identical projects ---> 2 compiled exec causing Vista different response
- From: Jan Hyde (VB MVP)
- Re: 2 identical projects ---> 2 compiled exec causing Vista different response
- From: Jack
- 2 identical projects ---> 2 compiled exec causing Vista different response
- Prev by Date: subclassing causes hangng ot my vb6 application
- Next by Date: Re: Runtime Error 91
- Previous by thread: Re: 2 identical projects ---> 2 compiled exec causing Vista different response
- Next by thread: Measuring download speed
- Index(es):
Relevant Pages
|