mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
clean up .lnk shortcuts on desktop. fix register pdh.dll error message that is normal
This commit is contained in:
+28
-2
@@ -418,9 +418,14 @@ for FILE in "${FILES[@]}"; do
|
|||||||
echo "$FILE already exists in $TARGET_DIR."
|
echo "$FILE already exists in $TARGET_DIR."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Skip registering pdh.dll
|
||||||
|
if [ "$FILE" != "pdh.dll" ]; then
|
||||||
# Register the DLL with wine regsvr32
|
# Register the DLL with wine regsvr32
|
||||||
register_dll "$TARGET_DIR/$FILE" ||
|
register_dll "$TARGET_DIR/$FILE" ||
|
||||||
{ ERRCODE="Failed to register $FILE with wine regsvr32"; errors; }
|
{ ERRCODE="Failed to register $FILE with wine regsvr32"; errors; return; }
|
||||||
|
else
|
||||||
|
echo "Skipping registration for $FILE."
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
@@ -473,9 +478,14 @@ for FILE in "${FILES[@]}"; do
|
|||||||
echo "$FILE already exists in $TARGET_DIR."
|
echo "$FILE already exists in $TARGET_DIR."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Skip registering pdh.dll
|
||||||
|
if [ "$FILE" != "pdh.dll" ]; then
|
||||||
# Register the DLL with wine regsvr32
|
# Register the DLL with wine regsvr32
|
||||||
register_dll "$TARGET_DIR/$FILE" ||
|
register_dll "$TARGET_DIR/$FILE" ||
|
||||||
{ ERRCODE="Failed to register $FILE with wine regsvr32"; errors; }
|
{ ERRCODE="Failed to register $FILE with wine regsvr32"; errors; return; }
|
||||||
|
else
|
||||||
|
echo "Skipping registration for $FILE."
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
cd $HOME/Downloads && if ls VARA* 1> /dev/null 2>&1; then rm VARA* 2>/dev/null; fi && wget ${VARAFMLINK} ||
|
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() {
|
function complete() {
|
||||||
|
if [[ -f /tmp/results ]]; then
|
||||||
rm /tmp/results
|
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 \
|
echo "All selected updates have been completed." | yad --image=$DIR/images/donate2.png \
|
||||||
--text-info --center --wrap --button="gtk-ok:0" \
|
--text-info --center --wrap --button="gtk-ok:0" \
|
||||||
--title "Complete" ${r} ${c}
|
--title "Complete" ${r} ${c}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# Version 1.2.1
|
# Version 1.2.1
|
||||||
- in testing, missing .ocx files were discovered. These are not locally hosted in the repo and copied during installation.
|
- in testing, missing .ocx files were discovered. These are not locally hosted in the repo and copied during installation.
|
||||||
- Added option to purge installation.
|
- Added option to purge installation.
|
||||||
|
- clean up .lnk files on desktop at close
|
||||||
# Version 1.2
|
# Version 1.2
|
||||||
- fix error on fresh install where varafm/varahf will not download
|
- fix error on fresh install where varafm/varahf will not download
|
||||||
# Version 1.1.1
|
# Version 1.1.1
|
||||||
|
|||||||
Reference in New Issue
Block a user