Announcement

Collapse
No announcement yet.

Checking folder attributes, moving folders or stored variables

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Checking folder attributes, moving folders or stored variables

    I may or may not have the system attribute set on folders (for folder icons) via the installer, so I need it set to whatever it is currently when the uninstaller is running (this is a variety of installers because this is a large project).

    I have tried moving the folder via the move command on the file operators menu (which I could have swore worked fine in the past) & I couldn't find any options that allow reading file or folder attributes. I was thinking of just storing a TRUE or FALSE value in a variable (when the system attribute is set in the installer) but I wasn't sure if I did that, the variable would still work with the uninstaller. I know I can set this in the registry but I didn't want to go through all of that if it was already set anyway.

    Some feedback would be useful, thanks.

  • #2
    Re: Checking folder attributes, moving folders or stored variables

    I would rather not do this via a variable set in registry in any way, I would really like this to be solely dependable on the system attribute.

    Again, any help here would be appreciated.

    Comment


    • #3
      Re: Checking folder attributes, moving folders or stored variables

      Maybe a little more information will help with a solution.

      This is where we are currently:

      - No, the Move or Copy files actions will not work on a directory itself.
      - No, there is no action to get the attributes of a folder or file, however yes you can set them.

      What you may have to do is write a batch file to get the attributes of the folder and then read in that information to store the variable. You mention moving, however it's not clear what you needed to do there. Are you wanting the folder to remain on the users system if it has the "System" attribute set so it isn't removed by the uninstall? If you got the system attribute information from the batch file, you could probably rename the folder which should leave the folder on the user's system.

      Comment


      • #4
        Re: Checking folder attributes, moving folders or stored variables

        I have a variety of installers all working together & it would have been a bit complicated to go into detail on how everything worked, but it is irrelavent at this point because I fixed everything. I do appreciate your time though, thanks.

        Comment


        • #5
          Re: Checking folder attributes, moving folders or stored variables

          I'm happy to hear you were able to find a resolution to your problem.

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎