fusioninventory / fusioninventory-agent-windows-installer

The New Windows Installer for FusionInventory Agent
GNU General Public License v2.0
11 stars 5 forks source link

Setup not working #1

Closed jdehn closed 6 years ago

jdehn commented 6 years ago

Hi there! I am trying to install the agent on my Windows 10 Pro machines (1703, 1709 and 1803) but I am getting the same issue like described here.

fusioninventory-agent_windows-x64_2.4.exe /acceptlicense /no-start-menu /server='http://xxx/glpi/plugins/fusioninventory/' /runnow /execmode=service /installtype=from-scratch /installtasks=inventory,deploy

If I try that the installer will start and I have to choose the language but after clicking "OK" the User's Guide is opened. If I try the same thing with "/S" nothing happens.

Does anyone else get this behaviour still in version 2.4?

Thanks a lot!

gabrielranulfo commented 6 years ago

Hello, I have a problem with the Vbs script that I use to install the client, instead of searching for the executable in GitHub according to Destination, I changed it to my local server

For some reason, the previously configured Git server did not work, use it as a palliative solution until it resolves or corrects the script

image

ddurieux commented 6 years ago

perhaps remove the & SetupVersion if you put the file directly in /download/ on your web server

g-bougard commented 6 years ago

@jdehn This happens only when one of your argument is wrong. Can you double-check your command line ? I think by the way the installer should first tell what is wrong than just open the help page.

jdehn commented 6 years ago

@g-bougard Thank you for your reply - I checked the arguments again and I can't see anything wrong. After a while playing around I found out the setup works properly without the server-argument. /server='http://server.dom.ain/glpi/plugins/fusioninventory/'

Could you tell me if that is wrong? Also tried it without quotes and with double qoutes, nothing happens.

jdehn commented 6 years ago

Error still not solved - is anyone reading this?

ddurieux commented 6 years ago

Try use " instead ' because I think it get the word /server in the URL and use it as an argument

jdehn commented 6 years ago

Setup is working now but I can't start the service because of "[error] No target defined, aborting".

So that is still not the solution for this problem - do you have another idea?

ddurieux commented 6 years ago

for the arguments, it's in the file vbs or you run the install command on cmd / powrshell command?

jdehn commented 6 years ago

I am running that via batch script and deploying it via group policy - poorly there is no msi package.

ddurieux commented 6 years ago

So why not use the vbs file? it works perfectly with GPO deployement

jdehn commented 6 years ago

Sure, I could switch to vbs and have to learn how vbs works - but why can't I just use the commandline?

Is there or will there be a solution for this problem?

Wolvverine commented 6 years ago

The same problem. The reason for this was to use ' instead of " in /server="http://server1/plugin/fusioninventory,http://server2/plugin/fusioninventory,..." then the installer displays the guide. IMHO transferring to instructions without any error messages is not a good idea.

The second case of firing the Powershell console even the correct command will result in the same without any information about where the problem is.

g-bougard commented 6 years ago

Hi there,

the windows installer was a little modified in 2.4.2 to show a combo box when it detects an error on command line parsing. The combox appears even if run in silent mode... Sorry, I didn't find a better way by now. But I decided this is still better than nothing and this should really help people having trouble finding the right parameters combination.

This may be a problem if people is publishing with wrong parameters to a lot of machine at the same time. So always test your parameters before publishing !

With this feature added, I'm closing this issue as I think people will now know why the silent install fails thanks to the combo.