Program writing project

nodle

Administrator
Staff member
Member
Joined
Jan 28, 2006
Messages
42,829
Reaction score
1,505
Anyone good at righting a small basic GUI for a small program. Basically to replace your start button in Windows 7 you have to go through these steps below:

Take ownership of explorer.exe and give yourself full permissions to it. (Right click on it > Properties > Security Tab > Advanced > Owner Tab > Edit > Click on Administrators > OK > OK > OK > OK > YES then Right Click on the file again, Properties > Security Tab, click on EDIT > click on Administrators, Full Control: Allow > OK > OK)Rename explorer.exe by explorerBackup.exe (in order to have a backup of the original if you enconter problemsThen paste the explorer.exe modified

Restart Windows and enjoy

NOTE : to win time you can kill the process explorer.exe in task manager and start it again
Ok there must be an easier way to do this, like an automated task or script that would do this for you will a simple go button and a completed button asking you to restart. How hard would this be to create? There is quite a few people on the web asking for a simple program like this. This may help with the code:

@echo offecho "Taking ownership of the UXTheme libraries..."echo y | takeown /f "C:\Windows\System32\uxtheme.dll"

echo y | takeown /f "C:\Windows\System32\themeui.dll"

echo y | takeown /f "C:\Windows\System32\shsvcs.dll"

echo "Setting permissions UXTheme libraries..."

echo y | icacls "C:\Windows\System32\uxtheme.dll" /grant Administrators:F

echo y | icacls "C:\Windows\System32\themeui.dll" /grant Administrators:F

echo y | icacls "C:\Windows\System32\shsvcs.dll" /grant Administrators:F

echo "Deleting old backed up UXTheme libraries..."

echo y | del "C:\Windows\System32\uxtheme.dll.old"

echo y | del "C:\Windows\System32\themeui.dll.old"

echo y | del "C:\Windows\System32\shsvcs.dll.old"

echo "Backing up old UXTheme libraries..."

echo y | ren "C:\Windows\System32\uxtheme.dll" "uxtheme.dll.old"

echo y | ren "C:\Windows\System32\themeui.dll" "themeui.dll.old"

echo y | ren "C:\Windows\System32\shsvcs.dll" "shsvcs.dll.old"

echo "Copying new UXTheme libraries..."

echo y | copy "X:\Backups\UXTheme\uxtheme.dll" "C:\Windows\System32\"

echo y | copy "X:\Backups\UXTheme\themeui.dll" "C:\Windows\System32\"

echo y | copy "X:\Backups\UXTheme\shsvcs.dll" "C:\Windows\System32\"

echo "Taking ownership of system files..."

echo y | takeown /f "C:\Windows\Explorer.exe"

echo y | takeown /f "C:\Windows\Branding\Basebrd\basebrd.dll"

echo y | takeown /f "C:\Windows\en-US\explorer.exe.mui"

echo y | takeown /f "C:\Windows\System32\authui.dll"

echo y | takeown /f "C:\Windows\System32\browseui.dll"

echo y | takeown /f "C:\Windows\System32\gameux.dll"

echo y | takeown /f "C:\Windows\System32\ieframe.dll"

echo y | takeown /f "C:\Windows\System32\imageres.dll"

echo y | takeown /f "C:\Windows\System32\shell32.dll"

echo y | takeown /f "C:\Windows\System32\wmploc.DLL"

echo y | takeown /f "C:\Windows\System32\en-US\browseui.dll.mui"

echo y | takeown /f "C:\Windows\System32\en-US\shell32.dll.mui"

echo y | takeown /f "C:\Windows\SysWOW64\browseui.dll"

echo y | takeown /f "C:\Windows\SysWOW64\shell32.dll"

echo "Setting permissions to system files..."

echo y | icacls "C:\Windows\Explorer.exe" /grant Administrators:F

echo y | icacls "C:\Windows\Branding\Basebrd\basebrd.dll" /grant Administrators:F

echo y | icacls "C:\Windows\en-US\explorer.exe.mui" /grant Administrators:F

echo y | icacls "C:\Windows\System32\authui.dll" /grant Administrators:F

echo y | icacls "C:\Windows\System32\browseui.dll" /grant Administrators:F

echo y | icacls "C:\Windows\System32\gameux.dll" /grant Administrators:F

echo y | icacls "C:\Windows\System32\ieframe.dll" /grant Administrators:F

echo y | icacls "C:\Windows\System32\imageres.dll" /grant Administrators:F

echo y | icacls "C:\Windows\System32\shell32.dll" /grant Administrators:F

echo y | icacls "C:\Windows\System32\wmploc.DLL" /grant Administrators:F

echo y | icacls "C:\Windows\System32\en-US\browseui.dll.mui" /grant Administrators:F

echo y | icacls "C:\Windows\System32\en-US\shell32.dll.mui" /grant Administrators:F

echo y | icacls "C:\Windows\SysWOW64\browseui.dll" /grant Administrators:F

echo y | icacls "C:\Windows\SysWOW64\shell32.dll" /grant Administrators:F

echo "Deleting all OLD files..."

echo y | del "C:\Windows\Explorer.exe.old"

echo y | del "C:\Windows\Branding\Basebrd\basebrd.dll.old"

echo y | del "C:\Windows\en-US\explorer.exe.mui.old"

echo y | del "C:\Windows\System32\authui.dll.old"

echo y | del "C:\Windows\System32\browseui.dll.old"

echo y | del "C:\Windows\System32\gameux.dll.old"

echo y | del "C:\Windows\System32\ieframe.dll.old"

echo y | del "C:\Windows\System32\imageres.dll.old"

echo y | del "C:\Windows\System32\shell32.dll.old"

echo y | del "C:\Windows\System32\wmploc.DLl.old"

echo y | del "C:\Windows\System32\en-US\browseui.dll.mui.old"

echo y | del "C:\Windows\System32\en-US\shell32.dll.mui.old"

echo y | del "C:\Windows\SysWOW64\browseui.dll.old"

echo y | del "C:\Windows\SysWOW64\shell32.dll.old"

echo "Backing up the original system files..."

echo y | ren "C:\Windows\explorer.exe" "explorer.exe.old"

echo y | ren "C:\Windows\Branding\Basebrd\basebrd.dll" "basebrd.dll.old"

echo y | ren "C:\Windows\en-US\explorer.exe.mui" "explorer.exe.mui.old"

echo y | ren "C:\Windows\System32\authui.dll" "authui.dll.old"

echo y | ren "C:\Windows\System32\browseui.dll" "browseui.dll.old"

echo y | ren "C:\Windows\System32\gameux.dll" "gameux.dll.old"

echo y | ren "C:\Windows\System32\ieframe.dll" "ieframe.dll.old"

echo y | ren "C:\Windows\System32\imageres.dll" "imageres.dll.old"

echo y | ren "C:\Windows\System32\shell32.dll" "shell32.dll.old"

echo y | ren "C:\Windows\System32\wmploc.DLL" "wmploc.DLL.old"

echo y | ren "C:\Windows\System32\en-US\browseui.dll.mui" "browseui.dll.mui.old"

echo y | ren "C:\Windows\System32\en-US\shell32.dll.mui" "shell32.dll.mui.old"

echo y | ren "C:\Windows\SysWOW64\browseui.dll" "browseui.dll.old"

echo y | ren "C:\Windows\SysWOW64\shell32.dll" "shell32.dll.old"

echo "Copying modified system files..."

echo y | copy "X:\Backups\Windows\Explorer.exe" "C:\Windows\"

echo y | copy "X:\Backups\Windows\Branding\Basebrd\basebrd.dll" "C:\Windows\Branding\Basebrd\"

echo y | copy "X:\Backups\Windows\en-US\explorer.exe.mui" "C:\Windows\en-US\"

echo y | copy "X:\Backups\Windows\System32\authui.dll" "C:\Windows\System32\"

echo y | copy "X:\Backups\Windows\System32\browseui.dll" "C:\Windows\System32\"

echo y | copy "X:\Backups\Windows\System32\gameux.dll" "C:\Windows\System32\"

echo y | copy "X:\Backups\Windows\System32\ieframe.dll" "C:\Windows\System32\"

echo y | copy "X:\Backups\Windows\System32\imageres.dll" "C:\Windows\System32\"

echo y | copy "X:\Backups\Windows\System32\shell32.dll" "C:\Windows\System32\"

echo y | copy "X:\Backups\Windows\System32\wmploc.DLL" "C:\Windows\System32\"

echo y | copy "X:\Backups\Windows\System32\en-US\browseui.dll.mui" "C:\Windows\System32\en-US\"

echo y | copy "X:\Backups\Windows\System32\en-US\shell32.dll.mui" "C:\Windows\System32\en-US\"

echo y | copy "X:\Backups\Windows\SysWOW64\browseui.dll" "C:\Windows\SysWOW64\"

echo y | copy "X:\Backups\Windows\SysWOW64\shell32.dll" "C:\Windows\SysWOW64\"
But it would be nice to incorporate this into a little GUI. Anyone up for this?

 
Are you kidding, I did this stuff all the time with the help of a program called Vtask. I created some complicated programs for work that automated anything I wanted. I could look at this closer if you want. The program is fully compatible with all versions of windows back to 95 or 98 and the end executable is a small .exe (would be detected on anti-viruses as a problem, but is clean), but never had a problem.
 
Are you kidding, I did this stuff all the time with the help of a program called Vtask. I created some complicated programs for work that automated anything I wanted. I could look at this closer if you want. The program is fully compatible with all versions of windows back to 95 or 98 and the end executable is a small .exe (would be detected on anti-viruses as a problem, but is clean), but never had a problem.
You should do it I think most of the code is there. I know I see alot of request for it on the internet. The first code include the patched uxtheme.dll part but if you skip down a portion then you will see the code for the ownership.

echo "Taking ownership of system files..."echo y | takeown /f "C:\Windows\Explorer.exe"echo y | takeown /f "C:\Windows\Branding\Basebrd\basebrd.dll"

echo y | takeown /f "C:\Windows\en-US\explorer.exe.mui"

echo y | takeown /f "C:\Windows\System32\authui.dll"

echo y | takeown /f "C:\Windows\System32\browseui.dll"

echo y | takeown /f "C:\Windows\System32\gameux.dll"

echo y | takeown /f "C:\Windows\System32\ieframe.dll"

echo y | takeown /f "C:\Windows\System32\imageres.dll"

echo y | takeown /f "C:\Windows\System32\shell32.dll"

echo y | takeown /f "C:\Windows\System32\wmploc.DLL"

echo y | takeown /f "C:\Windows\System32\en-US\browseui.dll.mui"

echo y | takeown /f "C:\Windows\System32\en-US\shell32.dll.mui"

echo y | takeown /f "C:\Windows\SysWOW64\browseui.dll"

echo y | takeown /f "C:\Windows\SysWOW64\shell32.dll"

echo "Setting permissions to system files..."

echo y | icacls "C:\Windows\Explorer.exe" /grant Administrators:F

echo y | icacls "C:\Windows\Branding\Basebrd\basebrd.dll" /grant Administrators:F

echo y | icacls "C:\Windows\en-US\explorer.exe.mui" /grant Administrators:F

echo y | icacls "C:\Windows\System32\authui.dll" /grant Administrators:F

echo y | icacls "C:\Windows\System32\browseui.dll" /grant Administrators:F

echo y | icacls "C:\Windows\System32\gameux.dll" /grant Administrators:F

echo y | icacls "C:\Windows\System32\ieframe.dll" /grant Administrators:F

echo y | icacls "C:\Windows\System32\imageres.dll" /grant Administrators:F

echo y | icacls "C:\Windows\System32\shell32.dll" /grant Administrators:F

echo y | icacls "C:\Windows\System32\wmploc.DLL" /grant Administrators:F

echo y | icacls "C:\Windows\System32\en-US\browseui.dll.mui" /grant Administrators:F

echo y | icacls "C:\Windows\System32\en-US\shell32.dll.mui" /grant Administrators:F

echo y | icacls "C:\Windows\SysWOW64\browseui.dll" /grant Administrators:F

echo y | icacls "C:\Windows\SysWOW64\shell32.dll" /grant Administrators:F

echo "Deleting all OLD files..."

echo y | del "C:\Windows\Explorer.exe.old"

echo y | del "C:\Windows\Branding\Basebrd\basebrd.dll.old"

echo y | del "C:\Windows\en-US\explorer.exe.mui.old"

echo y | del "C:\Windows\System32\authui.dll.old"

echo y | del "C:\Windows\System32\browseui.dll.old"

echo y | del "C:\Windows\System32\gameux.dll.old"

echo y | del "C:\Windows\System32\ieframe.dll.old"

echo y | del "C:\Windows\System32\imageres.dll.old"

echo y | del "C:\Windows\System32\shell32.dll.old"

echo y | del "C:\Windows\System32\wmploc.DLl.old"

echo y | del "C:\Windows\System32\en-US\browseui.dll.mui.old"

echo y | del "C:\Windows\System32\en-US\shell32.dll.mui.old"

echo y | del "C:\Windows\SysWOW64\browseui.dll.old"

echo y | del "C:\Windows\SysWOW64\shell32.dll.old"

echo "Backing up the original system files..."

echo y | ren "C:\Windows\explorer.exe" "explorer.exe.old"

echo y | ren "C:\Windows\Branding\Basebrd\basebrd.dll" "basebrd.dll.old"

echo y | ren "C:\Windows\en-US\explorer.exe.mui" "explorer.exe.mui.old"

echo y | ren "C:\Windows\System32\authui.dll" "authui.dll.old"

echo y | ren "C:\Windows\System32\browseui.dll" "browseui.dll.old"

echo y | ren "C:\Windows\System32\gameux.dll" "gameux.dll.old"

echo y | ren "C:\Windows\System32\ieframe.dll" "ieframe.dll.old"

echo y | ren "C:\Windows\System32\imageres.dll" "imageres.dll.old"

echo y | ren "C:\Windows\System32\shell32.dll" "shell32.dll.old"

echo y | ren "C:\Windows\System32\wmploc.DLL" "wmploc.DLL.old"

echo y | ren "C:\Windows\System32\en-US\browseui.dll.mui" "browseui.dll.mui.old"

echo y | ren "C:\Windows\System32\en-US\shell32.dll.mui" "shell32.dll.mui.old"

echo y | ren "C:\Windows\SysWOW64\browseui.dll" "browseui.dll.old"

echo y | ren "C:\Windows\SysWOW64\shell32.dll" "shell32.dll.old"

echo "Copying modified system files..."

echo y | copy "X:\Backups\Windows\Explorer.exe" "C:\Windows\"

echo y | copy "X:\Backups\Windows\Branding\Basebrd\basebrd.dll" "C:\Windows\Branding\Basebrd\"

echo y | copy "X:\Backups\Windows\en-US\explorer.exe.mui" "C:\Windows\en-US\"

echo y | copy "X:\Backups\Windows\System32\authui.dll" "C:\Windows\System32\"

echo y | copy "X:\Backups\Windows\System32\browseui.dll" "C:\Windows\System32\"

echo y | copy "X:\Backups\Windows\System32\gameux.dll" "C:\Windows\System32\"

echo y | copy "X:\Backups\Windows\System32\ieframe.dll" "C:\Windows\System32\"

echo y | copy "X:\Backups\Windows\System32\imageres.dll" "C:\Windows\System32\"

echo y | copy "X:\Backups\Windows\System32\shell32.dll" "C:\Windows\System32\"

echo y | copy "X:\Backups\Windows\System32\wmploc.DLL" "C:\Windows\System32\"

echo y | copy "X:\Backups\Windows\System32\en-US\browseui.dll.mui" "C:\Windows\System32\en-US\"

echo y | copy "X:\Backups\Windows\System32\en-US\shell32.dll.mui" "C:\Windows\System32\en-US\"

echo y | copy "X:\Backups\Windows\SysWOW64\browseui.dll" "C:\Windows\SysWOW64\"

echo y | copy "X:\Backups\Windows\SysWOW64\shell32.dll" "C:\Windows\SysWOW64\"
Basically you just need elevated privileges, and then all you are doing is replacing the default explorer.exe with a modified version. But windows just has tight security restrictions on this hence the elevated privileges.

 
Basically we just need a simple GUI to point to the batch file and execute.
 
So what's this program actually doing?
 
I've used a similar reg hack (maybe the same) to be able to right click on a file and take ownership. For some processes I test at work I have to do this quite often. These are fairly simple hacks though, basically just a few DOS commands strung together in a reg key that ties the command to the context menu. It still annoyed me anyhow because I still had to copy and paste a file to the right spot and then take ownership.
It got old, so I just wrote my own little powershell script that copied a file to the correct location and then made me owner. I then incorporated this into a context menu as well, so now all I have to do is right click and choose my own option to copy and own the file.

 
Yeah, I also created a program that fully converted Windows OS into a Mac OS, all code and all from the bottom up.
 
Yeah, I also created a program that fully converted Windows OS into a Mac OS, all code and all from the bottom up.
HAHAHA nice one! :tongue:

 
HAHAHA nice one! :tongue:
No but seriously, what is your orignal program trying to accomplish? Something about the start button?

 
No but seriously, what is your orignal program trying to accomplish? Something about the start button?
Yes basically just like you could with XP you can change your themes etc. by hacked uxtheme.dlls. Well most people have written a program to do this easily. Well the only thing it doesn't do is change your start button. So by doing this you complete your theme with a custom start button. I was just trying o make it easier and dumbed down.
For example this is now my start button instead of the default orb.

http://i48.tinypic.com/xli837.jpg

 
I could do this, but am confused on how or why it's backing up by renaming the file in the same location. Also, I assume drive "X" is just an example as most wouldn't have that on their system. And what's actually changing the look (theme) of the start button?
 
I could do this, but am confused on how or why it's backing up by renaming the file in the same location. Also, I assume drive "X" is just an example as most wouldn't have that on their system. And what's actually changing the look (theme) of the start button?
They want you to backup and rename "explorer.exe" just in case something goes wrong, or you will lose the shell. The actually change is the modified explorer.exe, so I guess you would have to incorporate a "browse" button to point to the modified explorer.exe then after that a go or proceed button.

 
They want you to backup and rename "explorer.exe" just in case something goes wrong, or you will lose the shell. The actually change is the modified explorer.exe, so I guess you would have to incorporate a "browse" button to point to the modified explorer.exe then after that a go or proceed button.
I guess I knew why because in case something goes wrong. But are the echo command steps in the correct order, is everything there? And what actually changes the start button theme or look?And why are the .old files being backed up, wouldn't the original files need to be backed up? Sorry for all the questions.

 
Back
Top