Link to home
Create AccountLog in
Avatar of jvuz
jvuzFlag for Belgium

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
ASKER CERTIFIED SOLUTION
Avatar of TimAllan
TimAllan
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of jvuz

ASKER

Do you mean: http://www.autoitscript.com ?
Ah yes :)
Thats the one.  I meant to say AutoIT and put in the web address accordingly....
Avatar of jvuz

ASKER

Other suggestions are always welcome
SOLUTION
Avatar of Krzysztof Pytko
Krzysztof Pytko
Flag of Poland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of jvuz

ASKER

We're using Samba, so that's not an option. Sorry that I didn't mention before.

Jvuz
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of jvuz

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.
Avatar of jvuz

ASKER

iSiek, can you explain a bit more please?
Avatar of jvuz

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


@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

Open in new window

use

psexec \\IP_address -u username -p password z:\FireFoxUK.exe
Avatar of jvuz

ASKER

This is what I have:

but it still doesn't work. This is the message I get:
'\\nisos\FreeSoft\OCS\packages'
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

Open in new window

PSEXEC.exe needs to be in directory where it can be accessed like c:\windows\system32
Avatar of jvuz

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

Open in new window

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\packages"
etc....
Avatar of jvuz

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

Open in new window

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

Avatar of jvuz

ASKER

Sorry, but when I do this in dos prompt:

copy x:\FirefoxUK.exe \\192.168.20.202\c$\temp\FirefoxUK.exe it works. When I use the batch file it doens't copy.
Avatar of jvuz

ASKER

Sorry, misread. I'll try it.
Avatar of jvuz

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

Open in new window

at what point does it fail?
Avatar of jvuz

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


@echo off

xcopy x:\FirefoxUK.exe \\192.168.%1\c$\temp\ /C /Y

PSEXEC \\192.168.%1 \\192.168.%1\c$\temp\firefoxUK.exe

Open in new window

Avatar of jvuz

ASKER

sorry, I don't understand it correctly i think. Can you explain a bit more please?

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\firefoxUK.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\firefoxUK.exe
Avatar of jvuz

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.
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\
thats a permissions issue.  
Avatar of jvuz

ASKER

When i do this from start-run: \\192.168.20.202\c$\temp

I've access.
Avatar of jvuz

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
Avatar of jvuz

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.
Avatar of jvuz

ASKER

Yes, but it's not free.

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

Open in new window

Avatar of jvuz

ASKER

Thanks everyone