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

Foreground Snapins

Scheduled Pinned Locked Moved
Feature Request
service scripts autoit snapins silent-installe
7
19
5.9k
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.
  • T
    Tom Elliott @JJ Fullmer
    last edited by Jun 21, 2016, 2:02 PM

    @JJ-Fullmer What if you made your autoIT script, then wrapped the autoIT script with an msi wrapper? That way the system user “clicks and what not” would still operate and all the wrapper would do is make it a potential possibility to make it a silent install.

    Of course I’m not even sure this is possible, but i think it’s a better shot than the track you’re on currently.

    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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

    J 1 Reply Last reply Jun 21, 2016, 3:40 PM Reply Quote 1
    • J
      JJ Fullmer Testers @Tom Elliott
      last edited by Jun 21, 2016, 3:40 PM

      @Tom-Elliott Do you have any guidance off hand on how to make an msi wrapper. Or know of any good guides on msi wrappers?
      Thanks for the idea, I am looking into it now.

      Have you tried the FogApi powershell module? It's pretty cool IMHO
      https://github.com/darksidemilk/FogApi
      https://fogapi.readthedocs.io/en/latest/
      https://www.powershellgallery.com/packages/FogApi
      https://forums.fogproject.org/topic/12026/powershell-api-module

      J 1 Reply Last reply Jun 21, 2016, 3:42 PM Reply Quote 0
      • J
        JJ Fullmer Testers @JJ Fullmer
        last edited by Jun 21, 2016, 3:42 PM

        @Tom-Elliott
        Oh it seems you mean the program called MSI wrapper… http://exemsi.com/getting-started

        Have you tried the FogApi powershell module? It's pretty cool IMHO
        https://github.com/darksidemilk/FogApi
        https://fogapi.readthedocs.io/en/latest/
        https://www.powershellgallery.com/packages/FogApi
        https://forums.fogproject.org/topic/12026/powershell-api-module

        1 Reply Last reply Reply Quote 0
        • J
          Joe Schmitt Senior Developer
          last edited by Jun 21, 2016, 3:42 PM

          @JJ-Fullmer it wouldn’t solve your issue. SYSTEM can’t interact with desktop sessions on newer windows versions. Its a security concern and is strictly prohibited. No amount of wrappers will circumvent that.

          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          J 1 Reply Last reply Jun 21, 2016, 3:43 PM Reply Quote 1
          • J
            JJ Fullmer Testers @Joe Schmitt
            last edited by Jun 21, 2016, 3:43 PM

            @Joe-Schmitt Then I must hack the system! Mwahahahahaha!

            Have you tried the FogApi powershell module? It's pretty cool IMHO
            https://github.com/darksidemilk/FogApi
            https://fogapi.readthedocs.io/en/latest/
            https://www.powershellgallery.com/packages/FogApi
            https://forums.fogproject.org/topic/12026/powershell-api-module

            I 1 Reply Last reply Jun 21, 2016, 4:35 PM Reply Quote 0
            • I
              ITSolutions Testers @JJ Fullmer
              last edited by Jun 21, 2016, 4:35 PM

              @JJ-Fullmer Not the best solution, but one work around I had done for a program that I had the same issues with is to schedule a task to install the software. I created a snapin that setup a scheduled task (using SCHTASKS) on the client and then kicked off the task before finishing. This allowed the program to come up in the user session and either be interacted with or in your case run the autoit script. I tried to find that script but I must have deleted it because I can not find it anywhere. But that may give you a starting point to try.

              J 2 Replies Last reply Jun 21, 2016, 6:48 PM Reply Quote 2
              • J
                JJ Fullmer Testers @ITSolutions
                last edited by Jun 21, 2016, 6:48 PM

                @ITSolutions @Tom-Elliott
                The msi-wrapper didn’t work in the snapin as @Joe-Scmitt predicted. Because even in the msi wrapper it still just opens up the gui installer and clicks through it. Still a really cool tool though, I’m sure I’ll find a use for it in the future.
                I’m going to give the Scheduled tasks idea a go.

                Have you tried the FogApi powershell module? It's pretty cool IMHO
                https://github.com/darksidemilk/FogApi
                https://fogapi.readthedocs.io/en/latest/
                https://www.powershellgallery.com/packages/FogApi
                https://forums.fogproject.org/topic/12026/powershell-api-module

                1 Reply Last reply Reply Quote 0
                • J
                  JJ Fullmer Testers @ITSolutions
                  last edited by Jun 21, 2016, 9:33 PM

                  @ITSolutions I don’t suppose you can find the script that you had? I can’t seem to get this to work.
                  I have tried a variety of things in the snapin for creating and running the scheduled task.
                  Such as

                  schtasks /Create /TN fas /TR "\\arrowfs3\scripts\Silent-Installers\Accounting\FAS.exe" /SC ONCE /ST 00:00 
                  schtasks /RUN /TN fas
                  
                  schtasks /Create /TN fas /TR "%~dp0\FAS.exe" /SC ONCE /ST 00:00 /RL HIGHEST /RU %domain%\%username% /RP %password% 
                  schtasks /RUN /TN fas
                  
                  

                  I was able to get the gui to pop up manually running the scheduled task from the command line but it didn’t do the same when run as a snapin. Perhaps it just can’t be done or I’m missing something. I suppose I could make the whole batch script be the scheduled task instead of just the exe version of the autoit script.

                  Have you tried the FogApi powershell module? It's pretty cool IMHO
                  https://github.com/darksidemilk/FogApi
                  https://fogapi.readthedocs.io/en/latest/
                  https://www.powershellgallery.com/packages/FogApi
                  https://forums.fogproject.org/topic/12026/powershell-api-module

                  Q I 2 Replies Last reply Jun 22, 2016, 7:10 AM Reply Quote 0
                  • Q
                    Quazz Moderator @JJ Fullmer
                    last edited by Quazz Jun 22, 2016, 1:11 AM Jun 22, 2016, 7:10 AM

                    @JJ-Fullmer Perhaps try the /IT (interactive) switch

                    1 Reply Last reply Reply Quote 1
                    • I
                      ITSolutions Testers @JJ Fullmer
                      last edited by Jun 22, 2016, 1:21 PM

                      @JJ-Fullmer I started digging a little further and found my scripts that I used for that and started to remember a few things. I had mixed results with the scheduled task also it worked sometimes, but not always and so I had to come up with a different solution and what I did was created a runonce entry in the reg and an auto login, then rebooted the machine. At the end of the script that ran I logged back off automatically, this is how I was able to consistently get the program to run. I eventually found a different solution for the program I was using and no longer had to use this. Hopefully you can make use of it though

                      reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v LWSoftware /t REG_SZ /d \\10.1.90.2\software$\Software_install.bat /f
                      reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d .
                      reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUsername /t REG_SZ /d Thecontrollerofall
                      reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d supersecret
                      reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1
                      reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_SZ /d 1
                      

                      Just in case you were wondering this was my scheduled task script, that as I said I got it to work on a couple machines, but very unreliable

                      C:\Windows\system32>schtasks /create /tn "FOG install" /tr "\\10.1.90.2\software$\Software_Install.bat" /sc once /st 12:00 /f
                      C:\Windows\system32>schtasks /run /tn "fog install"
                      C:\Windows\system32>schtasks /delete /tn "fog install"
                      
                      1 Reply Last reply Reply Quote 1
                      • J
                        JJ Fullmer Testers
                        last edited by Jun 22, 2016, 8:12 PM

                        The autologon idea might work, because most of the time the snapin would be installed right after imaging and I have a autologon for a setupcomplete type script. But I’d prefer a more flexible snapin solution that doesn’t require a restart, because it looks like a lot of the programs we use aren’t very scripting friendly.

                        @Quazz I tried the /IT switch it still didn’t work when started from the system account sadly.

                        I’m still experimenting with this. I’m trying to move to a Windows 10 LTSB image with a more snapin provisioning style for all my programs rather than having them all pre-installed in the image.

                        So I’ll keep playing with it and report back if I happen to find a universal solution that hasn’t been yet suggested.

                        Have you tried the FogApi powershell module? It's pretty cool IMHO
                        https://github.com/darksidemilk/FogApi
                        https://fogapi.readthedocs.io/en/latest/
                        https://www.powershellgallery.com/packages/FogApi
                        https://forums.fogproject.org/topic/12026/powershell-api-module

                        1 Reply Last reply Reply Quote 0
                        • K
                          kwetiaw
                          last edited by Aug 29, 2016, 4:22 AM

                          I know this is an old thread, but i am trying to achieve the same as @JJ-Fullmer. Automating post install of reboot restore rx using the snap in.

                          My environment is Fog 1.3.0. RC8 with smartinstaller. So this is not possible?

                          Wayne WorkmanW 1 Reply Last reply Aug 29, 2016, 1:11 PM Reply Quote 0
                          • Wayne WorkmanW
                            Wayne Workman @kwetiaw
                            last edited by Aug 29, 2016, 1:11 PM

                            @kwetiaw The professional version allows for network deployment, they also offer a msi repackager for the professional version. http://support.horizondatasys.com/Knowledgebase/Article/View/97/0/rollback-rx-deployment-guide

                            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!
                            Daily Clean Installation Results:
                            https://fogtesting.fogproject.us/
                            FOG Reporting:
                            https://fog-external-reporting-results.fogproject.us/

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

                            164

                            Online

                            12.1k

                            Users

                            17.3k

                            Topics

                            155.3k

                            Posts
                            Copyright © 2012-2024 FOG Project