Shortcut Issue.
Scenario:
My application Places a shortcut in ALLUSERS Start menu.
When a logged in user launches this shortcut , a new shortcut gets downloaded to same location with same name (in this user profile).
e.g.
My MSI will place the shortcut C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Companyname\Company.lnk
After launching the above shortcut we will have new shortcut on following path:
C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Companyname\Company.lnk
Problem :
The newer downloaded is not pointing to correct path.
Solution Tried:
case1:
Install the MSI
launch the shortcut through script.
wait for time till other shortcut is downloaded to user profile.
delete the shortcut from user profile.
Issue with this case : the application is launched , couldn't made it launch silently.
Case 2:
Placed shortcut in Desktop.
Issue : what if user try to launch the shortcut from
C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Companyname\Company.lnk.
Note: shortcut contain following command:
java -args "servername"
Any suggestion would be appreciated :)
My application Places a shortcut in ALLUSERS Start menu.
When a logged in user launches this shortcut , a new shortcut gets downloaded to same location with same name (in this user profile).
e.g.
My MSI will place the shortcut C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Companyname\Company.lnk
After launching the above shortcut we will have new shortcut on following path:
C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Companyname\Company.lnk
Problem :
The newer downloaded is not pointing to correct path.
Solution Tried:
case1:
Install the MSI
launch the shortcut through script.
wait for time till other shortcut is downloaded to user profile.
delete the shortcut from user profile.
Issue with this case : the application is launched , couldn't made it launch silently.
Case 2:
Placed shortcut in Desktop.
Issue : what if user try to launch the shortcut from
C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Companyname\Company.lnk.
Note: shortcut contain following command:
java -args "servername"
Any suggestion would be appreciated :)
0 Comments
[ + ] Show comments
Answers (7)
Please log in to answer
Posted by:
mahendraKumar
12 years ago
i have few more questions...
Is the shortcut getting created all time??( every time when you launch the application).
if shortcut getting created once per user during the first launch ... u can try to check with installrite or picture taker to find if any keys or configuration added to current user...
and add them to the package...
Is shortcut exe has some arguments ...
if any argument to the target exe.. check what happens when it is removed...
Is the shortcut getting created all time??( every time when you launch the application).
if shortcut getting created once per user during the first launch ... u can try to check with installrite or picture taker to find if any keys or configuration added to current user...
and add them to the package...
Is shortcut exe has some arguments ...
if any argument to the target exe.. check what happens when it is removed...
Posted by:
rock_star
12 years ago
Posted by:
anonymous_9363
12 years ago
Clear the 'Application' Event log, then click the original shortcut. If the application triggers self-healing (which will show up in the Event log) then the MSI has a user-level feature which is creating the shortcut. It should be a simple matter of tracking it down.
If the application is creating the new shortcut, if you don't already have one, you need to obtain a bright, shiny new Packager's Baseball Bat and then visit the vendor.
If the application is creating the new shortcut, if you don't already have one, you need to obtain a bright, shiny new Packager's Baseball Bat and then visit the vendor.
Posted by:
rock_star
12 years ago
Posted by:
SandeepPanat
12 years ago
Yes, I've seen such installation authors who want to deliver user based components by this odd way, asking the users to run the install themselves. And, they call it a MSI based setup.
@OP - If they want it this way, why don't you just use a CopyFile script to copy the shortcut in %userprofile% and then delete the %allusersprofile% shortcut?
Of course, MIND THE GAP ! before you try and record user response.
@OP - If they want it this way, why don't you just use a CopyFile script to copy the shortcut in %userprofile% and then delete the %allusersprofile% shortcut?
Of course, MIND THE GAP ! before you try and record user response.
Posted by:
rock_star
12 years ago
User doen't install anything . When application launches for first time shortcut and some files gets populated in user profile .( like new certificate , shortcut)
@Sandeep It's hard to manage these type of scenerio copy file (report in SCCM).
Case3 :
I have tested and copied the Read Only shortcut to roaming profile (C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Companyname\Company.lnk
) , So when a user launches the main shortcut , newer shorcut is not downloaded to the roaming location (just gets a prompt for first time that the shortcut is not downloded).
Application is working as expected .
@Sandeep It's hard to manage these type of scenerio copy file (report in SCCM).
Case3 :
I have tested and copied the Read Only shortcut to roaming profile (C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Companyname\Company.lnk
) , So when a user launches the main shortcut , newer shorcut is not downloaded to the roaming location (just gets a prompt for first time that the shortcut is not downloded).
Application is working as expected .
Posted by:
SandeepPanat
12 years ago
I'm confused. Is your issue resolved now?
In your first post, you mentioned the problem.
And, now
You want the shortcut to be created or not?
In your first post, you mentioned the problem.
ORIGINAL: rock_star
Problem :
The newer downloaded is not pointing to correct path.
And, now
ORIGINAL: rock_star
So when a user launches the main shortcut , newer shorcut is not downloaded to the roaming location (just gets a prompt for first time that the shortcut is not downloded).
Application is working as expected .
You want the shortcut to be created or not?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.