clean up .lnk shortcuts on desktop. fix register pdh.dll error message that is normal

This commit is contained in:
tb14
2025-07-02 01:43:00 -05:00
parent 80e2e33b40
commit 936ce2d2a9
2 changed files with 34 additions and 7 deletions
+33 -7
View File
@@ -418,9 +418,14 @@ for FILE in "${FILES[@]}"; do
echo "$FILE already exists in $TARGET_DIR."
fi
# Register the DLL with wine regsvr32
register_dll "$TARGET_DIR/$FILE" ||
{ ERRCODE="Failed to register $FILE with wine regsvr32"; errors; }
# Skip registering pdh.dll
if [ "$FILE" != "pdh.dll" ]; then
# Register the DLL with wine regsvr32
register_dll "$TARGET_DIR/$FILE" ||
{ ERRCODE="Failed to register $FILE with wine regsvr32"; errors; return; }
else
echo "Skipping registration for $FILE."
fi
done
@@ -473,9 +478,14 @@ for FILE in "${FILES[@]}"; do
echo "$FILE already exists in $TARGET_DIR."
fi
# Register the DLL with wine regsvr32
register_dll "$TARGET_DIR/$FILE" ||
{ ERRCODE="Failed to register $FILE with wine regsvr32"; errors; }
# Skip registering pdh.dll
if [ "$FILE" != "pdh.dll" ]; then
# Register the DLL with wine regsvr32
register_dll "$TARGET_DIR/$FILE" ||
{ ERRCODE="Failed to register $FILE with wine regsvr32"; errors; return; }
else
echo "Skipping registration for $FILE."
fi
done
cd $HOME/Downloads && if ls VARA* 1> /dev/null 2>&1; then rm VARA* 2>/dev/null; fi && wget ${VARAFMLINK} ||
@@ -704,7 +714,23 @@ bash install_winelink.sh vara_only
}
function complete() {
rm /tmp/results
if [[ -f /tmp/results ]]; then
rm /tmp/results
fi
# Define the directory and file pattern
DIR="$HOME/Desktop"
PATTERN="*.lnk"
# Loop through each .lnk file and remove it if it exists
for FILE in $DIR/$PATTERN; do
if [ -f "$FILE" ]; then
rm "$FILE" ||
{ ERRCODE="Failed to remove $FILE"; errors; }
else
echo "$FILE not found."
fi
done
echo "All selected updates have been completed." | yad --image=$DIR/images/donate2.png \
--text-info --center --wrap --button="gtk-ok:0" \
--title "Complete" ${r} ${c}
+1
View File
@@ -1,6 +1,7 @@
# Version 1.2.1
- in testing, missing .ocx files were discovered. These are not locally hosted in the repo and copied during installation.
- Added option to purge installation.
- clean up .lnk files on desktop at close
# Version 1.2
- fix error on fresh install where varafm/varahf will not download
# Version 1.1.1