Reply to Thread

Post a reply to the thread: Serious issues related to installing into Program Files

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 04-28-2017, 06:45 AM
    ChristianB

    Re: Serious issues related to installing into Program Files

    Quote Originally Posted by linder View Post
    Hi Christian,

    PERFECT!!! :-) Thanks for the update.

    Have a great weekend.

    Friedrich
    Thanks, the same to you. :-)
  • 04-28-2017, 06:13 AM
    linder

    Re: Serious issues related to installing into Program Files

    Hi Christian,

    PERFECT!!! :-) Thanks for the update.

    Have a great weekend.

    Friedrich
  • 04-28-2017, 05:18 AM
    ChristianB

    Re: Serious issues related to installing into Program Files

    Quote Originally Posted by linder View Post
    Quick note: if your Clarion application does not work correctly from within the protected "Program Files (x86)" folder tree even with an embedded Win10 UAC manifest, run your application (just for fun) "elevated". Right-click the main .exe and select "Run as administrator". Then see if this works. If it does, it's an UAC issue. But this is just a test. According to the Windows Development Guidelines, the "mixed-mode" application has to work fine non-elevated and elevated.

    Friedrich
    Hi Friedrich,

    thank you very much for your comments. We will definitely look into the UAC-aware section asap. As for now, our problem is solved. My colleague had implemented NLog into our program suite. The NLog configuration file was, by mistake, set to create log files directly into the application's base directory (in other words ProgramFiles\OurFolder) ...that's not a very good idea! :-) Turned the logger off and now everything runs fine again!

    --
    Christian
  • 04-28-2017, 03:35 AM
    linder

    Re: Serious issues related to installing into Program Files

    Quick note: if your Clarion application does not work correctly from within the protected "Program Files (x86)" folder tree even with an embedded Win10 UAC manifest, run your application (just for fun) "elevated". Right-click the main .exe and select "Run as administrator". Then see if this works. If it does, it's an UAC issue. But this is just a test. According to the Windows Development Guidelines, the "mixed-mode" application has to work fine non-elevated and elevated.

    Friedrich
  • 04-28-2017, 03:12 AM
    linder

    Re: Serious issues related to installing into Program Files

    Christian,

    of course, this has nothing to do with the installer at all. Is your own Clarion application UAC-aware?

    If "c:\AnotherFolder" (not a protected Windows resource) works fine but the "Program Files" folder tree (a protected Windows resource) does not work, then you have a serious (UAC) issue in your own application ;-)

    BTW, here is a very brief description of how to make an application "UAC-aware"

    http://www.lindersoft.com/forums/sho...3976#post83976

    Does this help?

    Friedrich
  • 04-28-2017, 02:19 AM
    ChristianB

    Serious issues related to installing into Program Files

    Hi all,

    when testing our latest RC-setup we found that installing our software into ProgramFiles\OurFolder creates unexpected things to happen. Our program won't start or actually it starts, but no GUI appears. In other words the main process runs, but nothing happens. Not even the MS SQL logon when not having a valid connection string present. Installing into c:\AnotherFolder works fine. Also putting this "AnotherFolder" into Program Files afterwards. What could cause this to happen? We have no code signing what so ever, but why should this problem occur now? Our software is mainly Clarion based win32, partly .NET. All .NET exe starts like normal from Program Files, none of the Clarion win32 exe does. We tried to change manifest settings on our main exe using "generate default application manifest". We did a recompile of this single application and put it into the installed Program Files\OurFolder. Then the software starts as normal, but with a very outdated look on all controls...running the software right from the release folder also works like normal.

    We desperately need some input on this as our customers are giving us a hard time waiting for their updates...

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •