Reply to post

Startup settings disapear on closing "Startup and Tray Icon" window.

Author
JanP
User
  • Total Posts : 0
  • Scores: 0
  • Reward points: 0
  • Joined: 2018/07/13 03:45:49
  • Status: offline
2018/11/26 08:24:57 (permalink)
0

Startup settings disapear on closing "Startup and Tray Icon" window.

Hello, 
our user's experience, that the 'Auto-start with windows' option in the 'Startup and Tray Icon' window is blank again, after closing the 'Startup and Tray Icon' window, and reopening it. Also, HyperSnap is never added to the AutoStart folder of the user. 
 
Our affected Systems:
Windows 10, 1709  (64bit)
HyperSnap 8.16.07 (64bit)
Users don't have local administrative permissions.
 
I used procmon.exe to trace the issue. If I select the option  'Auto-start with windows', HyperSnap doesn't seem to try to write a lnk-file to the user's startup folder (shell:startup). Even not, if the user is a local administrator.  
If I select the option 'For all users on this computer', Hypersnap successfully writes a file: "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\HyperSnap 8.lnk". 
But this requires administrative rights. 
 
Our users have their startup folder redirected (Profile redirected folders) to a personal network drive, which is also using Offline Files for sync. Example for a user's shell:startup folder: 
\\server\share$\somefoldernames\AppData\Microsoft\Windows\Start
I tried to disconnect the drive and used 'Subst x: c:\users\public' for testing. But Hypersnap still didn't write the file. 
According to procmon.exe, Hypersnap doesn't even try to write the lnk file. 
 
I don't see any error message, nor a hint in the procmon trace. Any idea? 

13 Replies Related Threads

    Admin
    Administrator
    • Total Posts : 275
    • Scores: 6
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2018/11/26 13:50:28 (permalink)
    0
    HyperSnap takes the path to user Startup folder from the Registry, under the following path:
     
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
     
    The value it reads there is "Startup" REG_SZ value. What is this value on your users' computers? I don't know how I could programmatically find out a redirected user folder. If you have this information, please share and I may be able to implement such change in the next release of HyperSnap 8.
     
    Greg
    JanP
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2018/07/13 03:45:49
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2018/11/27 05:30:58 (permalink)
    0
    Hello Greg, 
     
    the value in that registry key is a FQDN based UNC path. About like this (slightly changed):
    \\servername.dns\sharename$\profile redirected folders\AppData\Microsoft\Windows\Start Menu\Programs\Startup
     
    So the profile redirection setting has already been applied to the registry key. It is not a local drive letter, but a UNC path. May this have an impact? 
     
    Best regards, 
    Jan
     
    JanP
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2018/07/13 03:45:49
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2018/11/27 06:59:00 (permalink)
    0
    I did a test, by changing the registry key to 'C:\users\public\', and restarted HyperSnap. But HyperSnap still doesn't write any file there, nor does the tick in the checkbox stay.  
     
     Jan
    Admin
    Administrator
    • Total Posts : 275
    • Scores: 6
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2018/11/27 07:40:50 (permalink)
    0
    I am using a function practically identical to Microsoft sample at https://docs.microsoft.com/en-us/windows/desktop/shell/links, under the "Using Shell Links" - the CreateLink() function there. I don't see how could I do anything differently. Maybe you have some strict security settings on your computers that prevent apps from creating shortcuts? Guess the only thing I could do would be to display an error message when any call on psl-> or ppf-> pointer fails there, so that we would know which function failed, and maybe query further the system for the error code and message... Let me know if you want a build with more error messages being displayed from the CreateLink() function.
     
    JanP
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2018/07/13 03:45:49
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2018/11/29 10:26:05 (permalink)
    0
    I will do another test, trying to leave out our customizations.  
     
    Looking at my procmon traces, it seems like there is a problem creating some files (My picture folder, and Startup folder). 
    I will try to reduce the data, and may be able to provide the trace or some screenshots by PM. I don't want to publish some of the data on the internet. 
     
     
     
    Admin
    Administrator
    • Total Posts : 275
    • Scores: 6
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2018/11/29 13:57:24 (permalink)
    0
    You can email me directly instead of posting here, but if there are errors related to security settings on your devices, I would not be able to help. It's a matter to resolve by system administrators on your network...
     
    Greg
    JanP
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2018/07/13 03:45:49
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2019/01/24 08:23:06 (permalink)
    0
    Hello Greg, 


    I have gone through extensive testing. I used a vanilla Windows 10 device and experienced the same issue, if the device is joined to our domain and recieving our Group-Policies. I reviewed all policies, but couldn't identify the reason for the hypersnap startup lnk file not being created.
     
     
    What I was able to reproduce though is, that it does work for local user accounts (which don't receive GPO, because the accounts don't belong to our domain). But this is no option. 
     
    I changed our Folder-Redirection settings back to Microsoft default. That didn't help fixing the issue. 
     
    I used powershell to simulate the creation of a symlink in the shell:startup folder. Which gives me a "Administrator privilege required for this operation.". Since I can't make our users local administrators, nor make them automatically run everything in administrative context, this doesn't help. 
     
    I also checked a security Setting (secpol.msc) called 'Create symbolic links'. Microsoft implemented this to protect the system from hackers creating startup folder items. By default, creation of symbolic links is only allowed for local administrators. But even if I allow it to all 'users', it doesn't work in HyperSnap.
     
    Finally, i wondered why other applications can start up with windows. I used a portable application called FreeDownloadManager (FDM) for testing. Within the application, I selected to start up with windows. What it does is: It creates a registry entry in: 
    Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
     
    So this application doesn't make use of the Shell:Startup folder, but it uses the RUN-Key in the registry. 
     
    I tested with a manual run-Key entry: 
    reg_sz "Hypersnap8"
    value: "C:\Program Files\HyperSnap 8\HprSnap8.exe"
    And Hypersnap was successfully loaded after logon. 
     
    I would like to ask, if you may think about changing the HyperSnap startup mechanics to use the registry RUN key, instead of the shell:startup folder. Would that be feasible? 
    Admin
    Administrator
    • Total Posts : 275
    • Scores: 6
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2019/01/25 20:19:46 (permalink)
    0
    I could do this if it's a high priority item for you and your company. I selected to use Startup folder in the past, as it seemed to me more user friendly, anyone could easily find this link and delete it if they no longer wanted that auto-startup.
     
    Greg
    JanP
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2018/07/13 03:45:49
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2019/01/29 04:09:35 (permalink)
    0
    Hello Greg, 
     
    yes, this is a high priority topic for us, since the users can't configure Hypersnap to start up automatically on Windows 10. (We still can't find the reason for this). 
     
    We are currently migrating our users to Windows 10. 
    If you look at the Windows 10 task-manager ("more details" mode), there is a 'Startup' tab. If HyperSnap is added to the Registry's run-key, it will be listed there, and the user can disable the startup from there. No need to use 'regedit.exe' or go and find the 'Shell:Startup' folder which is not listed in the Windows 10 Start menu, anymore.
     
    Nevertheless, If Hypersnap would give any error message or return code and path details, why the *.lnk file has not been created, I would be willing to do more research on this. But in the current situation I have tested everything that came to my mind. 
     
    So personally, I would currently prefer the run-key variant.
    Admin
    Administrator
    • Total Posts : 275
    • Scores: 6
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2019/02/03 08:37:28 (permalink)
    0
    Thank you, will try to implement a different method of "start with Windows" in the next update of HyperSnap 8
     
    Greg
    Admin
    Administrator
    • Total Posts : 275
    • Scores: 6
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2019/02/09 14:30:55 (permalink)
    0
    I now released version 8.16.09 of HyperSnap, where the "auto-start with Windows" option is handled via the registry entries under
     
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    or
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
     
    instead of the old Windows StartUp directory. Hope this helps, thanks!
     
    Greg
    JanP
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2018/07/13 03:45:49
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2019/02/18 04:48:59 (permalink)
    0
    Hello Greg, 
     
    thank you for this update. I just downloaded it and will provide feedback, soon. 
     
    Best regards, 
    Jan
    JanP
    User
    • Total Posts : 0
    • Scores: 0
    • Reward points: 0
    • Joined: 2018/07/13 03:45:49
    • Status: offline
    Re: Startup settings disapear on closing "Startup and Tray Icon" window. 2019/02/22 04:49:19 (permalink)
    0
    Hello Greg, 
     
    the new windows startup integration works very well. We are now preparing a deployment package for our company, and pilot the new version in a larger user group. 
     
    Thank you very much for your support and effort you put into this!
     
    Best regards,
    Jan
    Jump to:
    © 2024 APG vNext Commercial Version 5.1