Snapins not working properly
-
-
@msaglioc99 This is most likely an issue with how you’re configuring the snapin. Have you looked over the examples here: https://wiki.fogproject.org/wiki/index.php?title=Snapin_Examples
For us to really help you get started with Snapins, we need to know what it is your trying to do with snapins, the files you’re working with, where they are, etc.
-
@Wayne-Workman I am configuring the snapin correctly and followed the example. It works properly, i see the file placed in the TMP folder and FOG gives a message stating that the program was installed or the file was ran but any type of file (exe, msi, bat or any kind of script) is always placed in the folder but never ran/executed. This is why I believe it is a permissions issue.
-
@msaglioc99 I have to ask how you know it’s not being executed.
I ask because to know absolutely if it’s being run or not (and it’s running with an expectation the snapin system doesn’t have access to from the client). Can you make your script write to a log file somewhere on the machine. If the log is generated, then you know the script IS or isn’t running absolutely. What the executable being called does is a whole different thing.
-
@Tom-Elliott said in Snapins not working properly:
e to ask how you know it’s not being executed.
I ask because to know absolutely if it’s being run or not (and it’s running with an expectation the snapin system doesn’t have access to from the client). Can you make your script write to a log file somewhere on the machine. If the log is generated, then you know the script IS or isn’t running absoThe script is not being ran. The log was not generated.
-
@msaglioc99 So your scripts are creating a log already?
-
@Tom-Elliott
If I manually execute it creates a log file, if I deploy using FOG’s snapin feature a log is generated. Do you have a script that you can send me for a test? Or something you suggest? Something simple ? Just so we can pin point the problem. -
Let’s go the simplest method.
Edit one of your batch scripts.
At the start have it do something like:
echo "Snapin BLAH BLAH beginning installation" > %systemdrive%\fog_snapin_install_snapinname.log
At the end, also have it run:
echo "Snapin BLAH BLAH ending installation" > %systemdrive%\fog_snapin_install_snapinname.log
Try deploying the snapin that fails. When it shows as complete, look on that system to see if the log file was generated and has what you expect.
-
@msaglioc99 Permission issues would show up in the FOG client log.
That said, not all software can be installed by the SYSTEM user I believe, some require user interaction.
What we really need is to see what you’re actually trying to do.
-
I want to install MS Project 2016 @Quazz
-
@msaglioc99
I would suggest using the following. It works also with Office 2k16.