Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Help w/ Security Issue Win7

Help w/ Security Issue Win7

Scheduled Pinned Locked Moved C#
helpannouncementphpvisual-studiocom
20 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Richard Andrew x64R Richard Andrew x64

    Well, the first thing I would do is put in a bunch of logging statements that document more of what's going on. For instance, I would log the application exe path that you are creating at the beginning of the function you showed, just to make sure it is what you expect it to be.

    The difficult we do right away... ...the impossible takes slightly longer.

    J Offline
    J Offline
    Jammer 0
    wrote on last edited by
    #6

    I think this is worth trying now as I have utterly run out of ideas. Surely since the *exact* code is in the old version of the application and remains unchanged between versions it makes no sense why it has automagically stop working ... Thanks,

    Jammer My Blog | Articles | DMon | SampleSort

    1 Reply Last reply
    0
    • G GenJerDan

      Where are you installing it to? (Meaning an "All Users" installation, or per User) Ran into a similar thing...set it up to make an app All Users, but forgot to make the files readable/writeable to them. Setup put them in the correct place, but without the correct permissions. No errors, but no workee, either. If using Inno, you'll need the "Permissions: users-modify;" flag in the file copy lines.

      There is water at the bottom of the ocean. My Mu[sic] My Films My Windows Programs, etc.

      J Offline
      J Offline
      Jammer 0
      wrote on last edited by
      #7

      Damn, this is a hot lead!! I had a feeling the problem was in the setup somewhere. I asked about this on CP and the inno setup list back in December (yes I've been on this problem for a while). Did you change your setup based on moving your app to Win7 compatibility? The app is compiled as 32bit as there are some third party components that are 32bit (and various other issues) so it's installed into the "Program Files (x86)" directory and there is an "All Users" option on the installer UI which I've been using to test this. I think this may well be the answer. You might be interesting in the app I'm making as well ... it's for muso's! http://www.jamsoft.co.uk/[^] I'll get on this tonight and give an update here. Thanks!

      Jammer My Blog | Articles | DMon | SampleSort

      G 2 Replies Last reply
      0
      • J Jammer 0

        Damn, this is a hot lead!! I had a feeling the problem was in the setup somewhere. I asked about this on CP and the inno setup list back in December (yes I've been on this problem for a while). Did you change your setup based on moving your app to Win7 compatibility? The app is compiled as 32bit as there are some third party components that are 32bit (and various other issues) so it's installed into the "Program Files (x86)" directory and there is an "All Users" option on the installer UI which I've been using to test this. I think this may well be the answer. You might be interesting in the app I'm making as well ... it's for muso's! http://www.jamsoft.co.uk/[^] I'll get on this tonight and give an update here. Thanks!

        Jammer My Blog | Articles | DMon | SampleSort

        G Offline
        G Offline
        GenJerDan
        wrote on last edited by
        #8

        Jammer wrote:

        Did you change your setup based on moving your app to Win7 compatibility?

        Mine was Win7 to begin with...just never noticed a problem until I actually tried it after an install...just ran it from VS or otherwise directly from the location VS output the files.

        There is water at the bottom of the ocean. My Mu[sic] My Films My Windows Programs, etc.

        1 Reply Last reply
        0
        • J Jammer 0

          Damn, this is a hot lead!! I had a feeling the problem was in the setup somewhere. I asked about this on CP and the inno setup list back in December (yes I've been on this problem for a while). Did you change your setup based on moving your app to Win7 compatibility? The app is compiled as 32bit as there are some third party components that are 32bit (and various other issues) so it's installed into the "Program Files (x86)" directory and there is an "All Users" option on the installer UI which I've been using to test this. I think this may well be the answer. You might be interesting in the app I'm making as well ... it's for muso's! http://www.jamsoft.co.uk/[^] I'll get on this tonight and give an update here. Thanks!

          Jammer My Blog | Articles | DMon | SampleSort

          G Offline
          G Offline
          GenJerDan
          wrote on last edited by
          #9

          Jammer wrote:

          You might be interesting in the app I'm making as well ... it's for muso's!

          That is so....strange. My app is very, very similar in concept. More generalized and without some of the more advanced features, but...damn. Great minds, thinking alike?

          There is water at the bottom of the ocean. My Mu[sic] My Films My Windows Programs, etc.

          J 1 Reply Last reply
          0
          • G GenJerDan

            Jammer wrote:

            You might be interesting in the app I'm making as well ... it's for muso's!

            That is so....strange. My app is very, very similar in concept. More generalized and without some of the more advanced features, but...damn. Great minds, thinking alike?

            There is water at the bottom of the ocean. My Mu[sic] My Films My Windows Programs, etc.

            J Offline
            J Offline
            Jammer 0
            wrote on last edited by
            #10

            I'd like to think so ... but then being maverick is kinda appealing too :)

            Jammer My Blog | Articles | DMon | SampleSort

            1 Reply Last reply
            0
            • G GenJerDan

              Where are you installing it to? (Meaning an "All Users" installation, or per User) Ran into a similar thing...set it up to make an app All Users, but forgot to make the files readable/writeable to them. Setup put them in the correct place, but without the correct permissions. No errors, but no workee, either. If using Inno, you'll need the "Permissions: users-modify;" flag in the file copy lines.

              There is water at the bottom of the ocean. My Mu[sic] My Films My Windows Programs, etc.

              J Offline
              J Offline
              Jammer 0
              wrote on last edited by
              #11

              Hmm ... unfortunately this hasn't fixed it either. I've also tried "Permissions: everyone-modify;" Back to the drawing board. Thanks GenJerDan

              Jammer My Blog | Articles | DMon | SampleSort

              G 1 Reply Last reply
              0
              • J Jammer 0

                Hmm ... unfortunately this hasn't fixed it either. I've also tried "Permissions: everyone-modify;" Back to the drawing board. Thanks GenJerDan

                Jammer My Blog | Articles | DMon | SampleSort

                G Offline
                G Offline
                GenJerDan
                wrote on last edited by
                #12

                Looking at it again, a question: That function looks to me like it is opening the selected file in its default program, yes? If so, why not just do

                System.Diagnostics.Process.Start(SelectedFile);

                and let windows itself do the grunt work?

                There is water at the bottom of the ocean. My Mu[sic] My Films My Windows Programs, etc.

                J 1 Reply Last reply
                0
                • G GenJerDan

                  Looking at it again, a question: That function looks to me like it is opening the selected file in its default program, yes? If so, why not just do

                  System.Diagnostics.Process.Start(SelectedFile);

                  and let windows itself do the grunt work?

                  There is water at the bottom of the ocean. My Mu[sic] My Films My Windows Programs, etc.

                  J Offline
                  J Offline
                  Jammer 0
                  wrote on last edited by
                  #13

                  on a Digital Audio workstation there maybe many editor apps and many apps with file associations to the .wav extension for instance, I need to be able to be specific about the app. It's been working fine for multiple releases of my app, then all of a sudden it's stopped working. I'm thinking of ditching Inno Setup and trying to build a new installer using WiX ...

                  Jammer My Blog | Articles | DMon | SampleSort

                  modified on Wednesday, March 9, 2011 3:56 AM

                  G 1 Reply Last reply
                  0
                  • G GenJerDan

                    Where are you installing it to? (Meaning an "All Users" installation, or per User) Ran into a similar thing...set it up to make an app All Users, but forgot to make the files readable/writeable to them. Setup put them in the correct place, but without the correct permissions. No errors, but no workee, either. If using Inno, you'll need the "Permissions: users-modify;" flag in the file copy lines.

                    There is water at the bottom of the ocean. My Mu[sic] My Films My Windows Programs, etc.

                    J Offline
                    J Offline
                    Jammer 0
                    wrote on last edited by
                    #14

                    Also when asking on the Inno Setup list I was told not to add this Permissions tag to the files ...

                    Jammer My Blog | Articles | DMon | SampleSort

                    G 1 Reply Last reply
                    0
                    • J Jammer 0

                      Also when asking on the Inno Setup list I was told not to add this Permissions tag to the files ...

                      Jammer My Blog | Articles | DMon | SampleSort

                      G Offline
                      G Offline
                      GenJerDan
                      wrote on last edited by
                      #15

                      Really? What kind of sense does that make? If the app is running with the credentials of someone without permission to those files...it won't work.

                      There is water at the bottom of the ocean. My Mu[sic] My Films My Windows Programs, etc.

                      J 1 Reply Last reply
                      0
                      • J Jammer 0

                        on a Digital Audio workstation there maybe many editor apps and many apps with file associations to the .wav extension for instance, I need to be able to be specific about the app. It's been working fine for multiple releases of my app, then all of a sudden it's stopped working. I'm thinking of ditching Inno Setup and trying to build a new installer using WiX ...

                        Jammer My Blog | Articles | DMon | SampleSort

                        modified on Wednesday, March 9, 2011 3:56 AM

                        G Offline
                        G Offline
                        GenJerDan
                        wrote on last edited by
                        #16

                        The suddenly stopped working part is probably Win7. The only way to track it down will be to create a debug build that logs every step of the problem area to a file saved in a public directory, then install it under a "normal" user account.

                        There is water at the bottom of the ocean. My Mu[sic] My Films My Windows Programs, etc.

                        J 1 Reply Last reply
                        0
                        • G GenJerDan

                          The suddenly stopped working part is probably Win7. The only way to track it down will be to create a debug build that logs every step of the problem area to a file saved in a public directory, then install it under a "normal" user account.

                          There is water at the bottom of the ocean. My Mu[sic] My Films My Windows Programs, etc.

                          J Offline
                          J Offline
                          Jammer 0
                          wrote on last edited by
                          #17

                          Indeed, that is my conclusion as well.

                          Jammer My Blog | Articles | DMon | SampleSort

                          1 Reply Last reply
                          0
                          • G GenJerDan

                            Really? What kind of sense does that make? If the app is running with the credentials of someone without permission to those files...it won't work.

                            There is water at the bottom of the ocean. My Mu[sic] My Films My Windows Programs, etc.

                            J Offline
                            J Offline
                            Jammer 0
                            wrote on last edited by
                            #18

                            I was thinking the same thing. To be honest, I've decided to move to WiX for my installer. I'm going to create a new installer from the ground up. I've been meaning to do this since I started using WiX at work a few months ago, I prefer it in almost every way. If the problem persists with the new installer I'll be closer to a solution! I've started this same discussion on the Inno Setup newsgroup a few times now and a few suggestions are made and then the thread goes dead and I'm no nearer a solution. Time to really shake things up I think. Thanks for all your help chap.

                            Jammer My Blog | Articles | DMon | SampleSort

                            G 1 Reply Last reply
                            0
                            • J Jammer 0

                              I was thinking the same thing. To be honest, I've decided to move to WiX for my installer. I'm going to create a new installer from the ground up. I've been meaning to do this since I started using WiX at work a few months ago, I prefer it in almost every way. If the problem persists with the new installer I'll be closer to a solution! I've started this same discussion on the Inno Setup newsgroup a few times now and a few suggestions are made and then the thread goes dead and I'm no nearer a solution. Time to really shake things up I think. Thanks for all your help chap.

                              Jammer My Blog | Articles | DMon | SampleSort

                              G Offline
                              G Offline
                              GenJerDan
                              wrote on last edited by
                              #19

                              Jammer wrote:

                              Time to really shake things up I think.

                              Almost always a good idea. :)

                              There is water at the bottom of the ocean. My Mu[sic] My Films My Windows Programs, etc.

                              J 1 Reply Last reply
                              0
                              • G GenJerDan

                                Jammer wrote:

                                Time to really shake things up I think.

                                Almost always a good idea. :)

                                There is water at the bottom of the ocean. My Mu[sic] My Films My Windows Programs, etc.

                                J Offline
                                J Offline
                                Jammer 0
                                wrote on last edited by
                                #20

                                Just finished my new WiX installer. Ran it, ran the app and bingo, everything is working now ... Hurrah for WiX!!!

                                Jammer My Blog | Articles | DMon | SampleSort

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups