SCCM Program issue

I am trying to link two program's (same package)
they both work independently but wont work when set to use "all ways run  this programe first"

so..  in package A, i have three programes set   task1  task2 and uninstall

I select task two for the advertisement, and within program properties select always run this programe first and choose "task1"

looking at the error log,  (error 1)  generic

also Task1 runs as user   task2 runs as admin  (could this be the fault??)

thank you
mhamerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mhamerAuthor Commented:
anyone?
0
BusbarSolutions ArchitectCommented:
If Task1 requires aditrative permissions then this is the problem, can you run task 1 by itself as a user and see if it works or not
0
mhamerAuthor Commented:
Yes it works

they both work independently

task one creats a folder aqnd populates it  in the users home drive , the admin account doesnt have access  so run as user.

the shortcut is done in the second task  and is put in "all users" the user doesnt have rights to add to "all users" so its done via admin rights.

there is no flexibility in changing the rights.

so i need to run the folder creation first then the shortcut creation, im new to SCCM  would task sequence be of any use?
0
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

BusbarSolutions ArchitectCommented:
no Task Sequence for OS deployment.
what does the SCCM says in the status message, what are the errors related to the advertisment.
0
merowingerCommented:
You can also use Task Sequences for deploying software.
Try to create a task sequence as you can also choose the account which executes the specific step
0
mhamerAuthor Commented:
the error is just  install excited with error 1 seek help from vendor of the software (words to that effect

nothing helpful.  plus it works when run on its own so the actual install is fine
0
merowingerCommented:
a workaround is to execute the application from an script and instead of the application command line you enter the script as program command line.

e.g.

set objShell = CreateObject("Wscript.Shell")
objShell.Run "YourSetup.exe",1,false

Save the vbScript (.vbs) in the same directory and point the programm to execute the script (cscript.exe startinstall.vbs)
The script will always return error code 0 as it exectued successfully
0
mhamerAuthor Commented:
that wont work for my situation

returning a 0 instead of a 1 just means the second task has a chance of running not the first one
(unless im mistaken :-) )

0
mhamerAuthor Commented:
Sorted a collegue had written an error handler which i used with my own code
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.