ElektroStudios / File2Startup

A desktop app to add executable files to run at Windows startup with ease.
Apache License 2.0
6 stars 1 forks source link

Very cool app #2

Open odorizzioficial opened 6 months ago

odorizzioficial commented 6 months ago

Hello, great application, I put a PDF to test and it worked perfectly, but how do I delete the files I put so it doesn't start with Windows anymore?

ElektroStudios commented 6 months ago

Hi. Thanks for your comments.

Actually, the application only has the functionality of adding an item of your choice (in this case, a PDF file) to run at Windows startup. It does not have the functionality to disable or delete the element.

I will add that functionality in the next release as per this issue, but I'll answer now to this issue to give you a solution:

You must use a task manager to disable or delete the item, or you can simply open the Windows Registry (using regedit.exe, which is located at the path: C:\Windows\regedit.exe) and delete the related registry value to the PDF file that you will find in one of the following registry keys (depending on how you added the item):

odorizzioficial commented 6 months ago

Thanks buddy, when you release the next update I'll put a video about your app on my YouTube channel :) to help you, if you could put the language in Brazilian Portuguese, I'd be grateful

Channel name Odorizzi

ElektroStudios commented 6 months ago

I'm working on the changes from time to time. The new functionality is already implemented and almost finished. Probably in two or three more days from now I will be able to update the changes in the source code of the repository and publish the new release with all these changes applied; I still need to add multilanguage support.

You have a very interesting channel with so much audience, and it would be an honor for me if this humble program has some visibility. Thank you so much!.

When the program is ready I hope you will try it to know your opinion. There will probably be some mistranslated words to correct in Portuguese.

ElektroStudios commented 6 months ago

how do I delete the files I put so it doesn't start with Windows anymore?

if you could put the language in Brazilian Portuguese

The changes were implemented, please check Version 1.3 release.

After a file is added to Windows Startup, you can delete it by following these steps:

Please feel free to reopen and continue this conversation if you find any issues in the usage, or in the Portuguese translation, or for anything else.

Thanks for the enhancement suggestions, and for everything else. Enjoy it!.

odorizzioficial commented 6 months ago

image

Perfect buddy, it's very nice and beautiful, great translation, thank you very much, only when you stretch the screen you get this BUG hahaha just to warn you

When I click on the item builder / send to item builder, nothing happens haha

odorizzioficial commented 6 months ago

image

And another friend, if you can solve this FALSE POSITIVE too, otherwise people will be afraid to download it

odorizzioficial commented 6 months ago

When you click on ITEM BUILDER and SEND TO ITEM BUILDER nothing happens, just to warn you

ElektroStudios commented 6 months ago

For some reason the layout logic of that control is not resumed on your computer (after parsing and adding the registry values to the control), causing those ugly black lines. It should be fixed in the v1.3.1 release.

Not sure about the "Item Builder" and "Send to Item Builder" button issues that you are experiencing (I can't reproduce those issues on my computer), but it could be related with the other issue above. In any case I've added some additional error handlings in the source-code, so it could also had been fixed in v1.3.1 release. Please, check it.

About the AV false positives, it is very difficult for me to determine what is causing it. But considering that the application performs Windows registry (read/write) manipulation, it would be hard to replace the way that the application performs those operations in order to get rid of false positives for all the AVs.

I will wait for your feedback, thank you.

odorizzioficial commented 6 months ago

When I click on these buttons nothing happens, I'm using Windows 10

ElektroStudios commented 6 months ago

When I click on these buttons nothing happens, I'm using Windows 10

I'm also on Windows 10 (22H2, 64-Bit). I'll show you which is the expected behavior:

IMAGE DESCRIPTION

I was not able to reproduce or figure out what is preventing those buttons from working on your computer, however, in version 1.3.2 I've added a "Compact Mode " Check box that should serve as a final workaround:

IMAGE DESCRIPTION

EDIT: Please don't miss newer version 1.3.3 as it fixes other minor aesthetic things.

¿Could you confirm it works for you?. Thank you for your patience!.

odorizzioficial commented 5 months ago

Now it's working properly, my friend, with the compact mode activated and deactivated, it works in both, only this error is appearing.

Then, with administrator mode activated, the error disappears.

Only the language isn't working properly

Windows 10 22h2 latest version

image

the rest is perfect :)

odorizzioficial commented 5 months ago

Just showing everything working properly

Errors: Language doesn't translate everything Error appears if not run as administrator, with administrator it is normal

ddss

ElektroStudios commented 5 months ago

with the compact mode activated and deactivated, it works in both

It's strange that the buttons problem has been solved, but I'm glad to hear that now it works for you!

Just showing everything working properly Errors: Language doesn't translate everything Error appears if not run as administrator, with administrator it is normal

The translation problem was an oversight, my fault, I did not included the translation files when uploading that release to GitHub. It's already solved in the (newer) release v1.3.4.

I have applied other changes to solve (or rather, to avoid) the problem of registry read/write errors when the user does not have enough (administrator) privileges.

It's important to note that the application must be run with administrator privileges if wants to add keys to the "HKEY_LOCAL_MACHINE" registry path (by using "All users" button in the application).

Definitely this time everything should work as expected on your side, please try version 1.3.4.


The truth is that I am too badly accustomed to using the hidden, built-in Administrator account, and with UAC disabled, so I never worry about problems with administrator privileges because I never have using that hidden built-in account. For this reason I do not usually notice these complications that other users will have when trying to use certain functionalities. I thank you again, because you have helped to improve various aspects of the application, in every way.

odorizzioficial commented 5 months ago

Perfect buddy, everything is working correctly now, there are just two details

When adding a program, file, document in the builder item, after adding it you must clear the fields to add a new program, etc...

And another:

The programs, files, documents that the user has added, in the startup list should be separated so that it is easier for the user to find what they have added and make changes such as deleting, looking in regedit etc... maybe put in a new tab the new files and those that are from the Windows system leave as is

Compact mode can be removed, my friend

I'm being annoying <3 but it's to improve, the rest is working very well

novo (2)

ElektroStudios commented 5 months ago

Compact mode can be removed, my friend

I'm afraid that reverting the changes might cause a breaking change on your computer, and thus, maybe causing problems for other users too.

Could you please test the "Item Builder" and "Startup List" buttons in this build before I officially apply the changes to a new release?:

v1.3.5 Portable WITHOUT COMPACT MODE.zip

When adding a program, file, document in the builder item, after adding it you must clear the fields to add a new program,

Already fixed in version 1.3.5. Thank you!.

The programs, files, documents that the user has added, in the startup list should be separated so that it is easier for the user to find what they have added and make changes such as deleting, looking in regedit etc... maybe put in a new tab the new files and those that are from the Windows system leave as is

I could make that distinction temporarily, I mean, as long as the program is running and adds an entry, I can determine that entry was added by the program, but to identify /make the distinction of the entries added by the program, permanently, would be more complicated.

I also think that the ideal would be to only show a list with the entries added by the program. That's what I would have liked from the beginning, and I've been toying with the idea, but unfortunately I can't make that distinction - in a permanent way - without adding some distinctive element to the name of the Windows registry entries added by the program such as a special prefix or suffix, and that would be very intrusive.

Or I could maintain a history, locally in a file or in a registry value, writing and loading the entries that were added with the program, but if the history file or registry key gets deleted, the program would no longer be able to identify those registry entries again, as the local information did not exist anymore.

In short, these kind of solutions that I have thought of, it can end up being counterproductive.

I'm being annoying <3 but it's to improve, the rest is working very well

You are not being annoying, you flatter me with your interest in this program. Any other proposal you may have in mind, do not hesitate to comment it.

odorizzioficial commented 5 months ago

Perfect buddy, everything is working properly now

Just one observation, when editing a file it duplicates instead of deleting the old one, for example:

I put an image with the name Odorizzi, I'm going to edit the image to Odorizzi2, you're left with the two images Odorizzi and Odorizzi2 you should delete Odorizzi and keep only Odorizzi2

The rest is perfect buddy, when you launch the official one, let me know, I'll put the video on my channel.

there could be a button to clear the recent ones so they don't get too polluted

The buttons are all working properly


Other types of programs that subscribers ask for on my Channel and that are hard to find and that are free/paid

An application that increases the volume of Windows beyond what is allowed, something very simple with a volume bar above 100%

A real-time translator for Windows that translates any application, image, files and games on the Windows screen

Fix YouTube, Twitch, Facebook etc. chat at the top of the screen while playing the game in full screen - this is what many LiveStream users want so they can read the chat.

Here's a tip :) if you do, I'll help you spread the word.

Translated with DeepL.com (free version)

ElektroStudios commented 5 months ago

I put an image with the name Odorizzi, I'm going to edit the image to Odorizzi2, you're left with the two images Odorizzi and Odorizzi2 you should delete Odorizzi and keep only Odorizzi2

I understand what you mean. I will add a dialog to let the user confirm deletion of the previous registry entry after successfully added the new edited one.

there could be a button to clear the recent ones so they don't get too polluted

Good idea, I'll implement that too.

I will also think about ways to distinguish the keys generated by the program, permanently, and separate them in a new tab. It may take me more than a few days.

Thank you for trying the version without compact mode.

See you soon!

ElektroStudios commented 5 months ago

Just one observation, when editing a file it duplicates instead of deleting the old one, for example:

I put an image with the name Odorizzi, I'm going to edit the image to Odorizzi2, you're left with the two images Odorizzi and Odorizzi2 you should delete Odorizzi and keep only Odorizzi2

there could be a button to clear the recent ones so they don't get too polluted

A new release have been published with the improvements applied!. 😄

Other types of programs that subscribers ask for on my Channel and that are hard to find and that are free/paid

Certainly they sound very interesting ideas, but they could be very challenging to develop. I will investigate from time to time.

Thanks for your feedback!

odorizzioficial commented 5 months ago

https://youtu.be/WpE3X4VsuVA Perfect, I posted the video about your application friend :) everything is working correctly, I just did a test with the OBS STUDIO program I tested with the shortcut and the .exe and it gave this error when starting windows, just so you know

other programs worked normally, only OBS had this BUG

image

image

ElektroStudios commented 5 months ago

Amazing video!, thanks a lot. I hope some of your subscribers could find this program useful!


image

It is not a problem related to File2Startup. There are simply some programs that when executed by the shell cannot locate their working directory.

Here you can see that the same problem occurs by simply trying to run the OBS process from CMD:

https://obsproject.com/forum/threads/solved-cant-run-obs-studio-from-cmd.73257/

That occurs because the user is not running OBS from its main, working directory.


SOLUTION (shortcut file)

In the shortcut it is mandatory to specify the working directory (where the obs32.exe / obs64.exe file is located), as indicated in this official article:

https://obsproject.com/kb/launch-parameters

To launch OBS Studio via scheduled tasks or other automated means, make sure to also set a working directory ("Start in...") which must point to the folder where obs64.exe is located.

In my case it will look like this:

IMAGE DESCRIPTION

Then the shortcut file will start at Windows startup correctly when added with File2Startup.


SOLUTION (CMD)

An alternative to adding a shortcut file in File2Startup, is to add a CMD entry with the following configuration:

File: C:\Windows\System32\cmd.exe
Arguments: /C " PUSHD "%ProgramFiles%\obs-studio\bin\64bit" && Start /B "" "obs64.exe" "

IMAGE DESCRIPTION

Note: Ensure to change %ProgramFiles%\obs-studio\bin\64bit if needed, to point to the directory path where you have OBS installed.