Hello,
still having problems running wupdate.exe from within my clarion app.
I tried some ways:
Run('wupdate.exe')
ShellExec
and Powerrun templates.
But i have no success to run the wupdate.exe.
Any ideas?
Thanks much
Kai
Printable View
Hello,
still having problems running wupdate.exe from within my clarion app.
I tried some ways:
Run('wupdate.exe')
ShellExec
and Powerrun templates.
But i have no success to run the wupdate.exe.
Any ideas?
Thanks much
Kai
> still having problems running wupdate.exe from within my clarion
> app.
>
> I tried some ways:
>
> Run('wupdate.exe')
> ShellExec
> and Powerrun templates.
>
> But i have no success to run the wupdate.exe.
>
> Any ideas?
What does "no success to run the wupdate.exe" mean? It does not start, it
bombs out with an error, etc.? I think it's impossible to answer this
question without more (detailed) information. The standard wupdate.exe
gives you an exact error code and you can then check the wupdate.sb6 to see
what happens. The full wupdate.exe source code is provided in wupdate.sb6.
Of course, if you compile your own custom wupdate.exe then only you (the
developer) knows what is going on in the customized wupdate.
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
Helle Friedrich,
sorry that i posted no details on that problem.
Now i see much more details.
The wupdate.exe will still not executed. But i have noticed if i run my clarion
app as administrator in vista wupdate will started.
Im my wupdate i have only put something to handle the subscription key.
What i have to do, that i can execute the wupdate.exe if the user is not administrator?
Thanks again
Kai
Kai,
> Now i see much more details.
>
> The wupdate.exe will still not executed. But i have noticed if i run my
> clarion
> app as administrator in vista wupdate will started.
See what I replied in one of my previous postings. If wupdate.exe only
starts from your elevated Clarion application, then it's caused by the
following (taken from the link I gave you before)
---
CreateProcess() will always fail if a non-elevated application under
Vista/2008/Win7 attempts to launch another application whose manifest
requires elevation. GetLastError will return 740 (ERROR_ELEVATION_REQUIRED)
in this case.
---
If you check the "EXECUTE" return code, I am sure it is error 740!
> Im my wupdate i have only put something to handle the subscription key.
>
> What i have to do, that i can execute the wupdate.exe if the user is not
> administrator?
Follow my instructions <g>
And please note that there is a fundamental difference between using an
application under an Admin account and running an application with
administrator execution level privileges under Vista, Windows Server 2008,
Windows 7 and Windows Server 2008 R2!
Does this help?
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
Hi Kai,
> still having problems running wupdate.exe from within my clarion app.
>
> I tried some ways:
>
> Run('wupdate.exe')
Here is what I suggest you do:
1. Add the "Icetips Utilities Classes Global" extension from the Icetips
Utilities to your app.
2. In the local data embed for the procedure where you are doing this:
ITS ITShellClass
3. Replace the code with:
ITS.ITRun('wupdate.exe')
This will handle it:)
Best regards,
--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
Hello Arnor,
i still have the global template in my app but don´t get the ITShellClass?
Do i need a local procedure template?
Thanks much Kai
Hi Kai,
> i still have the global template in my app but don´t get the ITShellClass?
>
> Do i need a local procedure template?
There is nothing to "get" you just add those two lines of code in the embeds
that I suggested, local data embed and the embed where you want to run the
web update:)
>>2. In the local data embed for the procedure where you are doing this:
>>
>>ITS ITShellClass
>>
>>3. Replace the code with:
>>
>> ITS.ITRun('wupdate.exe')
ITS is now an instance of the ITShellClass and you can use it to do this
very easily. ITRun method replaces the Clarion Run and it uses
ShellExecuteEx to run the program.
Best regards,
--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
Hi Arnor,
very nice :-)
That will work now.
But i have still probs to get the wupdate.exe without the vista window (if the
user allowed to run the application) running. I have no idea what happen with
this elevation stuff...
I have embeded the vista manifest in clarion. That will not work. I tried your
IT Utilities manifest also. The same problem. When i try to use the manifest
from SetupBuilder i get the message that the manifest is still at the file.
This is when i switch off all manifest stuff in clarion also. It looks that the
manifest is still complied when switched off in clarion too.
How do you do this manifest stuff?
Thanks again
kai
Hi Kai,
> How do you do this manifest stuff?
I use my template or let SB do it. Depends on what I'm doing.
Why do you say it does not work? If you have an app and you run it under XP
or Vista the buttons in your app will get the XP or Vista button themes if
the manifest is there. If the manifest is not there, they will not.
Best regards,
--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php
Arnor,
the xp themes will work on my app but i have problem with the elevation of my
app. When i call the wupdate.exe from within my app i get the elevation prompt.
only if i run my app as administrator the wupdate runs without the elevation
prompt. Friedrich give me some infos for this too. but i can´t figure out what
i have to do for the elevation...
thanks much kai