jvuz
asked on
Create packages for instalation
Hello,
I'm looking after a freeware that can create packages of (in our case) freeware, so that peole can install without the need of having admin rights. Does something like that exists (freeware if possible)?
Jvuz
I'm looking after a freeware that can create packages of (in our case) freeware, so that peole can install without the need of having admin rights. Does something like that exists (freeware if possible)?
Jvuz
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Ah yes :)
Thats the one. I meant to say AutoIT and put in the web address accordingly....
Thats the one. I meant to say AutoIT and put in the web address accordingly....
ASKER
Other suggestions are always welcome
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
We're using Samba, so that's not an option. Sorry that I didn't mention before.
Jvuz
Jvuz
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
The problem is I don't want to create my own software. The goal is to create a package of an existing program (let's say irfanview) so that any user, without having admin rights is able to install that. So there should be a way to add something like runas, so that I could add user/password with admin rights.
use ZAP file for EXE (if you have no MSI package) and run it in Computer Configuration node under Software Installation. Then program will be installed during computer startup with higher privilages than users have.
ASKER
iSiek, can you explain a bit more please?
ASKER
I found a way to let users without admin rights to install software (by using Psexec), but I'm still struggling a bit with my batch file I'm creating. I'm geeting a message that it doesn't find the file, which is strange because it should find it. What error am I making?
Jvuz
Jvuz
@echo off
:START
net use Z: \\nisos\FreeSoft\OCS\packages
ECHO Enter IP address for installation soft:
set /p IP=Enter Destination IP: 192.168.
PSEXEC 192.168.%IP% z:\FirefoxUK.exe
ECHO Hit enter to continue
PAUSE
net use Z: \\nisos\FreeSoft\OCS\packages /delete
Exit
use
psexec \\IP_address -u username -p password z:\FireFoxUK.exe
psexec \\IP_address -u username -p password z:\FireFoxUK.exe
ASKER
This is what I have:
but it still doesn't work. This is the message I get:
'\\nisos\FreeSoft\OCS\pack ages'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
Enter IP address for installation soft:
Enter Destination IP: 192.168.
but it still doesn't work. This is the message I get:
'\\nisos\FreeSoft\OCS\pack
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
Enter IP address for installation soft:
Enter Destination IP: 192.168.
@echo off
:START
ECHO Enter IP address for installation soft:
set /p IP=Enter Destination IP: 192.168.
PSEXEC 192.168.%IP% net use Z: \\nisos\FreeSoft\OCS\packages
PSEXEC 192.168.%IP% -u supervisor -p Gtk+2=Gimp z:\FirefoxUK.exe
ECHO Hit enter to continue
PAUSE
PSEXEC 192.168.%IP% net use Z: /delete
Exit
PSEXEC.exe needs to be in directory where it can be accessed like c:\windows\system32
ASKER
My psexec works when the exe file is on his desktop. But it would be interesting if it could access a folder on our server.
Tim is right. You have to copy PsExec to %windir%\system32 or set path to it, first, then use
@echo off
:START
ECHO Enter IP address for installation soft:
set /p IP=Enter Destination IP: 192.168.
PSEXEC \\192.168.%IP% net "use Z: \\nisos\FreeSoft\OCS\packages"
PSEXEC \\192.168.%IP% -u supervisor -p Gtk+2=Gimp z:\FirefoxUK.exe
ECHO Hit enter to continue
PAUSE
PSEXEC \\192.168.%IP% net "use Z: /delete"
Exit
You could map a drive to where psexec.exe is located on the server and run it directly from there.
So say map
Y: \\server\locationofpsexec\
then run it like :
Y:\PSEXEC \\192.168.%IP% net "use Z: \\nisos\FreeSoft\OCS\packa ges"
etc....
So say map
Y: \\server\locationofpsexec\
then run it like :
Y:\PSEXEC \\192.168.%IP% net "use Z: \\nisos\FreeSoft\OCS\packa
etc....
ASKER
I changed it a bit, but I'm having problems copying. Strange because if I do this via the dos prompt it works.
@echo off
:START
ECHO Enter IP address for installation soft:
set /p IP=Enter Destination IP: 192.168.
WAIT copy x:\FirefoxUK.exe \\192.168.%IP%\c$\temp\FirefoxUK.exe
PSEXEC \\192.168.%IP% \\192.168.%IP%\c$\temp\firefoxUK.exe
ECHO Hit enter to continue
PAUSE
Exit
Batch files don't like UNC paths to execute files. You have to give it a direct drive letter to work from.
Try something like:
set /p IP=Enter Destination IP: 192.168.
net use t: \\192.168.%IP%\c$\temp\
WAIT copy x:\FirefoxUK.exe t:\FirefoxUK.exe
Try something like:
set /p IP=Enter Destination IP: 192.168.
net use t: \\192.168.%IP%\c$\temp\
WAIT copy x:\FirefoxUK.exe t:\FirefoxUK.exe
ASKER
Sorry, but when I do this in dos prompt:
copy x:\FirefoxUK.exe \\192.168.20.202\c$\temp\F irefoxUK.e xe it works. When I use the batch file it doens't copy.
copy x:\FirefoxUK.exe \\192.168.20.202\c$\temp\F
ASKER
Sorry, misread. I'll try it.
ASKER
With the following code it still doesn't work. What am I doing wrong :(
@echo off
:START
ECHO Enter IP address for installation soft:
set /p IP=Enter Destination IP: 192.168.
WAIT net use t: \\192.168.%IP%\c$\temp\
WAIT copy x:\FirefoxUK.exe t:\FirefoxUK.exe
PSEXEC \\192.168.%IP% t:\firefoxUK.exe
ECHO Hit enter to continue
PAUSE
Exit
at what point does it fail?
ASKER
I think the net use, because when I test it, it doesn't create a network drive.
try batch with parameter (%1) which you have to specify running batch
i.e.
mybatch.bat 1.10
i.e.
mybatch.bat 1.10
@echo off
xcopy x:\FirefoxUK.exe \\192.168.%1\c$\temp\ /C /Y
PSEXEC \\192.168.%1 \\192.168.%1\c$\temp\firefoxUK.exe
ASKER
sorry, I don't understand it correctly i think. Can you explain a bit more please?
Jvuz
Jvuz
take out the "wait"
preapre this batch and run it from command line with parameter (IP ending of your remote machine)
mybatch 1.10
it will work for 192.168.1.10
%1 will be replaced by 1.10
i.e.
@echo off
xcopy x:\FirefoxUK.exe \\192.168.%1\c$\temp\ /C /Y
PSEXEC \\192.168.%1 \\192.168.%1\c$\temp\firef oxUK.exe
after parameter
@echo off
xcopy x:\FirefoxUK.exe \\192.168.1.10\c$\temp\ /C /Y
PSEXEC \\192.168.%1 \\192.168.1.10\c$\temp\fir efoxUK.exe
mybatch 1.10
it will work for 192.168.1.10
%1 will be replaced by 1.10
i.e.
@echo off
xcopy x:\FirefoxUK.exe \\192.168.%1\c$\temp\ /C /Y
PSEXEC \\192.168.%1 \\192.168.%1\c$\temp\firef
after parameter
@echo off
xcopy x:\FirefoxUK.exe \\192.168.1.10\c$\temp\ /C /Y
PSEXEC \\192.168.%1 \\192.168.1.10\c$\temp\fir
ASKER
I tried this in dos prompt:
net use t: \\192.168.20.202\c$\temp\
and I get a system error 53 but the folder c:\temp does exist. So it's probably a syntax problem.
net use t: \\192.168.20.202\c$\temp\
and I get a system error 53 but the folder c:\temp does exist. So it's probably a syntax problem.
ok, does your user have administrative rights on remote system? Do you have enabled administrative shares? Check if T-Drive is not used
net use t: /delete
net use t: \\192.168.20.202\c$\temp\
net use t: /delete
net use t: \\192.168.20.202\c$\temp\
thats a permissions issue.
ASKER
When i do this from start-run: \\192.168.20.202\c$\temp
I've access.
I've access.
ASKER
iSiek,
the copy now worked, but doing the install didn't work. Nothing's happening, although FirefoxUK.exe is mentioned in the task manager
the copy now worked, but doing the install didn't work. Nothing's happening, although FirefoxUK.exe is mentioned in the task manager
ASKER
It seems I cannot get it work like I want to. Is there another way to remotely install software? For info, we don't have windows servers, so it's not possible via group policy.
Did you check this software? http://www.manageengine.com/products/desktop-central/windows-software-installation.html
ASKER
Yes, but it's not free.
But I've solved my problem. Like this it works:
But I've solved my problem. Like this it works:
set /p IP=Enter Destination IP: 192.168.
copy \\nisos\freesoft\applics\mozilla\win\firefoxUK.exe \\192.168.%IP%\c$\firefoxuk.exe
PAUSE
psexec \\192.168.%IP% "\\192.168.%IP%\c$\firefoxuk.exe" -ms
PAUSE
del \\192.168.%IP%\c$\firefoxuk.exe
PAUSE
exit
ASKER
Thanks everyone
ASKER