• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    It is possible to keep tmp file with snapin

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    6
    824
    Loading More Posts
    • 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.
    • L
      LaurentB
      last edited by

      Hi all, i’m a new user of Fog and i’m currently testing it.
      I have an application wich i want to deploy with the “Snapin” option.
      The msi program go in my windows client in the folder : C:\Program Files (x86)\FOG\tmp BUT when he is installed FOG delete the file.
      I want to know if it’s possible to keep it in this folder ? (or wich file i must modify to do it ?)

      Thanks for helping.

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        Let me say this is working as fog was designed. If you want to keep the MSI locally you will have to change how the snapin works. You will need to create a snapin pack (kind of like a zip file). That snapin pack will contain a batch file which will call your msi file as well as copy the MSI file to any location you need. To say it another way instead of the snapin calling the msi directly, you will need the snapin to call a batch file, that will call the msi as well as move the msi to where you need it.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        1 Reply Last reply Reply Quote 0
        • x23piracyX
          x23piracy
          last edited by

          Hi,

          all msi’s are kept:

          https://stackoverflow.com/questions/2071860/where-the-msi-file-is-copied-after-the-installation

          Does it not go into %windir%\installer
          Though I think that the files may get renamed. Not sure where you get the name mapping from…
          This directory gets very big so I move it to an external drive. This sometimes cause uninstalls or updates to fail with a missing msi error, but this can be fixed by putting the directory back

          For the renamed MSI file check LocalPackage attribute inside registry at path - [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData<InternalUserId>\Products<ProductGUID>\InstallProperties]. InternalUserId is something of sort S-1-5-18. ProductGUID is a GUID like 00058CD18F0BF523DA1072073D56715D embedded as a public property inside the MSI file.

          Bild Text

          ║▌║█║▌│║▌║▌█

          1 Reply Last reply Reply Quote 0
          • L
            LaurentB
            last edited by

            Thanks guy for your answers but …

            FOG copy my msi in C:\Program Files (x86)\FOG\tmp
            It execute and made the install; after a moment when the user want to use the program he click on the icon and see this error :
            alt text

            If i made a script like you said george1421 i couldn’t copy the file at the same place because it already exist
            what I want is that the msi sent locally on the client computers is not erased at all

            I don’t speak English very well so I don’t know if you understand me well … 🙂

            george1421G 1 Reply Last reply Reply Quote 0
            • george1421G
              george1421 Moderator @LaurentB
              last edited by george1421

              @laurentb Lets try this idea again now that we know the problem.

              You must copy the file first to a save location then install it. So you need to maybe use a batch file like this.

              @Echo Off
              if not exist "C:\Program Files\Packages" mkdir "C:\Program Files\Packages"
              if not exist "C:\Program Files\Packages" mkdir "C:\Program Files\Packages\Modsho"
              copy /Y %~dp0\modsho-1.1.msi "C:\Program Files\Packages\Modsho"
              msiexec -i "C:\Program Files\Packages\Modsho\modsho-1.1.msi" /qn
              

              Understand I wrote that batch file out of my head. I did not debug or test it. It should work (??).

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

              1 Reply Last reply Reply Quote 0
              • L
                LaurentB
                last edited by

                I’m testing your idea but the msi is very badly done ! 😞

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                196

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project