PDA

View Full Version : OT: Windows 7 Issues



NewsArchive
12-16-2009, 01:43 AM
I do not think this is a SetupBuilder problem but posted it in other
newsgroups and still not resolved. Just thought someone in this newsgroup
would have experienced this problem.



I have a C7 exe, running on a Win 7 client PC, that checks to see if there
is a newer version of our software to install. If so, I issue the
following:

RUN(glo:RootFolder & 'WSSETUP.EXE')

Where glo:RootFolder = \\pdsdev\pds_V7_QC\TTG and wssetup.exe is a
SetupBuilder install. The install resides on the server. This has worked
forever until we installed our software on a Windows 7 client PC. Server is
a Windows 2008 x32 server. I get the error 'File Not Found', error code 2
and wssetup.exe never shows in the task manager. If I navigate thru Windows
7 disk explorer, double click the install, it runs fine. If I copy it to
the Win 7 client, it runs fine. I assume this is a setting within Windows 7
but I have not been able to find it. The Windows firewall on the Win 7 PC
is not turned on. I have the requireAdministrator set in the Generator tab
of the SetupBuilder install. I have UAC turned off (Never notify) on the
Win 7 PC. Has anyone experienced this or know what setting I need to
change?

Dee Witham

NewsArchive
12-16-2009, 01:43 AM
> I do not think this is a SetupBuilder problem but posted it in other
> newsgroups and still not resolved. Just thought someone in this newsgroup
> would have experienced this problem.
>
>
>
> I have a C7 exe, running on a Win 7 client PC, that checks to see if there
> is a newer version of our software to install. If so, I issue the
> following:
>
> RUN(glo:RootFolder & 'WSSETUP.EXE')

Dee,

Using Clarion RUN in Vista or Windows 7 produces inconsistent results.

Arnor wrote an excellent blog on this at this location:

http://www.icetips.com/blog/index.php/2008/11/11/run-programs-elevated-on-vista

"In Clarion we have been able to use the RUN statement to run external
programs without much problems. However, with Vista, a problem comes up if
you want to run a program that either needs to be elevated by the program
running it or the program to be run is using requireAdministrator. Either
way it needs to be elevated.

Unfortunately RUN cannot handle this properly. The reason is that RUN uses
the CreateProcess API internally and it cannot trigger the elevation
process. If you try to use RUN to execute a program that requires
administrator privileges is that nothing happens! This can cause support
issues that are easily avoided.For that either ShellExecute or
ShellExecuteEx must be used."

I have used CapeSoft Hyperactive for a ShellExecute method to call another
EXE from within a Clarion program - Icetip Utilities contains methods to do
this as well.

David

--
From David Troxell - Product Scope 7.9 - Encourager Software
Product Scope 7 Viewer - NO Registration Fee! Free to Use!
http://www.encouragersoftware.com/
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
http://www.profileexchanges.com/blog/

NewsArchive
12-16-2009, 01:44 AM
David - thanks - Arnor article and his demo app did the trick. Thanks,
again. Dee

NewsArchive
12-16-2009, 01:45 AM
> David - thanks - Arnor article and his demo app did the trick. Thanks,
> again. Dee

Dee,

You're welcome - whenever I hear - Clarion RUN and Vista and/or Windows 7
mentioned in the same message, I think.

"Houston, we have a problem!"

David

--
From David Troxell - Product Scope 7.9 - Encourager Software
Product Scope 7 Viewer - NO Registration Fee! Free to Use!
http://www.encouragersoftware.com/
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
http://www.profileexchanges.com/blog/

NewsArchive
12-16-2009, 01:45 AM
Hi Dee,

Glad it is solved.

The Clarion RUN command is a wrapper around CreateProcess.

http://www.lindersoft.com/forums/showthread.php?p=28915#post28915

Here is a Clarion ShellExecuteEx Demo:

http://www.lindersoft.com/projects/ClarionShellExec.zip

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner